Hey, I got a really weird behaviour. When I set the PointLight’s castShadow
property to true
, objects in the scene get invisible using the OrthographicCamera.
There is one button that triggers a lot of things. For example switching to orthographic camera, setting the lights from a config and rebuilding objects.
After clicking that button, the objects are invisible. I can still select them and so on, but they are not visible. I can avoid that behaviour by setting the PointLight.castShadow to false!
So thats where I stuck. Im pretty sure, that its not a bug from threejs, but rather a error on my side.
I was hoping someone could direct me a little bit. Could that have something to do with the environment map?
The models are glTF/glb models imported. Some have a texture, all of them get the environment map.
Thanks