When I import a 3D model in .fbx
format to my scene using three.js, I noticed that the shadow effect is not as sharp as when using Unity. The shadows appear too blurry.
Is there a way to adjust the shadowMap
setting in three.js to match the shadow quality in Unity?
Below is the code snippet I currently have:
light = scene.getObjectByName("DirectionalLight");
light.castShadow = true;
light.shadowMap.type = THREE.PCFSoftShadowMap;
light.shadow.mapSize.width = 1024;
light.shadow.mapSize.height = 1024;
Any advice on how to achieve similar shadow quality would be greatly appreciated! Thank you!