KhronosGroup / glTF-Sample-Viewer

Physically-Based Rendering in glTF 2.0 using WebGL
Apache License 2.0
1.21k stars 229 forks source link

Punctual lighting is disabled when IBL is enabled #520

Closed TheMostDiligent closed 4 months ago

TheMostDiligent commented 5 months ago

Toggling Punctual Lighting on/off has no effect when IBL is enabled - it appears that IBL disables punctual lights.

https://github.com/KhronosGroup/glTF-Sample-Viewer/assets/61806567/404af0ba-5516-49fa-84dd-666c19ab19e0

UX3D-kanzler commented 4 months ago

The shown asset does not contain any punctual lights. If no punctual lights are available and IBL is turned off, we create default punctual lights to ensure a minimal illumination of the asset.

The asset LightsPunctualLamp contains punctual lights and behaves as expected.