google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2

Home Page:https://google.github.io/filament/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Build gltf_viewer on main (19b0ad2).
  2. Load the attached glTF file: test-ortho-light.glb.zip
  3. Turn off IBL and Sun.
  4. Under Camera, select "Camera_Orientation"
  5. 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 :-)