什么是我的shadowMap的问题?

时间:2017-05-02 01:16:55

标签: three.js

enter image description here

我的shadowMap太少了,问题是什么?

1 个答案:

答案 0 :(得分:0)

您可能没有设置阴影贴图相机(正确)。

From the docs:

  

默认为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()
相关问题