FocusEngine icon indicating copy to clipboard operation
FocusEngine copied to clipboard

Lights break in editor when bringing up other tabs/prefabs

Open phr00t opened this issue 3 years ago • 2 comments

If you are viewing a scene in the editor with lights and open another tab with lights, lights seem to visibly break. Probably some issue with multiple scenes of light.

Fortunately this is pretty easy to resolve -- just close out of the scenes and reopen the scene you want to see lights in. They become visible again.

phr00t avatar Aug 05 '22 22:08 phr00t

This was an attempt to fix it: https://github.com/phr00t/FocusEngine/commit/f8393186990b55d30e69c4265d4a60077d5f943c

I recently noticed that bringing up Asset Previews also break lights in the editor, which is more annoying. A new GraphicsCompositor is created, with new lighting objects... this is where some lights unexpectedly stop shining in the editor. It looks like the lights are still being processed, just not drawn.

phr00t avatar Oct 03 '22 18:10 phr00t

Making a "lean" GraphicsCompositor for asset previewing (without spotlight or pointlight renderers added to it) doesn't help.

phr00t avatar Oct 03 '22 19:10 phr00t