For potLight, there does not appear to be anyway to update the near/far clip planes.
My code.
A class that wraps SpotLight and DropShadow functionality:
The relevant portion of my app that updates near/far:
Thanks.
For potLight, there does not appear to be anyway to update the near/far clip planes.
My code.
A class that wraps SpotLight and DropShadow functionality:
The relevant portion of my app that updates near/far:
Thanks.
The projection matrix of the shadow camera is automatically computed by the renderer. It’s sufficient to just update the values.
/cc
Oh, I like that! Brilliant! Perhaps it can be added as an example to a future release. Cheers.