Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的场景中添加了一个定向光,但它并没有显示所有的阴影。阴影被切断,就像聚光灯的 FOV 太小一样。
当我启用 shadowCameraVisible 时,我看到我的灯光就像一个显示阴影的大盒子(这是有道理的)。问题是:我怎样才能让这个“盒子”更大?
找到了!原来shadowcamera有left、right、top和bottom属性:
light.shadowCameraLeft = -3000; light.shadowCameraRight = 3000; light.shadowCameraTop = 3500; light.shadowCameraBottom = -3000;