pex-gl / pex-renderer

Physically based renderer (PBR) and scene graph for PEX.
https://pex-gl.github.io/pex-renderer/examples/index.html
MIT License
234 stars 16 forks source link

Renderer crashes on directional lights that don't cast shadows #345

Closed vorg closed 10 months ago

vorg commented 1 year ago

Can't set uniform "uDirectionalLights[1].projectionMatrix" with a null value as the _projectionMatrix is never defined (only for lights with castShadows) and yet it's required by renderer's uniform setting code

dmnsgn commented 10 months ago

Everything is set by: