Punctual lights invisible with orthographic cameras
bejado opened this issue · comments
Describe the bug
When gltf_viewer loads a glTF file that contains some renderables, a point light, and an orthographic camera, the punctual light is invisible when viewed from the camera. Perspective cameras don't seem to be affected.
To Reproduce
Steps to reproduce the behavior:
- Build gltf_viewer on main (19b0ad2).
- Load the attached glTF file: test-ortho-light.glb.zip
- Turn off IBL and Sun.
- Under Camera, select "Camera_Orientation"
- Note that the light is no longer visible.
Desktop (please complete the following information):
Behavior reproduces on macOS and Windows across both Metal and OpenGL backends.
@pixelflinger FYI. I can look into this, but I think it's something to do with froxels.
I'll have a look. This stuff breaks constantly :-)