I was trying to manipulate a DirectionalLight dynamically by updating its .direction, either by assignment of a new Vector3D or by using incrementBy on .direction directly. Neither seems to have any effect. I am able to change e.g. the light’s color dynamically and other properties, but not the .direction vector once it is set the first time. Of course, I can set it to anything the first time and it works fine.
Does it have anything to do with the position of my mesh? But that should not affect the light, since a directional light is infinite with no position, only a direction.
I know it is more common to move the camera, but in this case, I want to change the light direction on the fly. I can trace out the .direction Vector3D value and see that it is indeed changing, but without visible effect.
While I’m asking, I notice that some older examples show the light direction coordinates ranging from -2000 to 2000, but most examples now only range from -1 to 1. Since the docs don’t say, what is the valid range for these coordinates?