我的shadowMap太少了,问题是什么?
答案 0 :(得分:0)
您可能没有设置阴影贴图相机(正确)。
默认为OrthographicCamera,左下角设为-5,右上角设为5,近剪裁平面为0.5,远剪裁平面为500。
含义:
yourLight.shadow.camera.left = -500 //(default is -5)
yourLight.shadow.camera.right = 500 //(default is 5)
yourLight.shadow.camera.top = -500 //(default is -5)
yourLight.shadow.camera.bottom = 500 //(default is 5)
//not sure if this is needed, the docs do not mention it even though they are changing the projection so probably not needed
yourLight.shadow.camera.updateProjectionMatrix()