I import a
.fbx 3D model to my scene using three.js, and found that the shadow effect is different from using Unity. All shadows are too blurry.
How to set
shadowMap in three.js to be same as in Unity?
Here is my code.
light = scene.getObjectByName("DirectionalLight"); light.castShadow = true; light.shadowMap.type = THREE.PCFSoftShadowMap; light.shadow.mapSize.width = 1024; light.shadow.mapSize.height = 1024;