phr00t / FocusEngine

Focus Game Engine. This is Stride/Xenko fast-tracked for Phr00t's Software games. Improvements over the original Focus on Vulkan support, PC platforms, VR, performance & ease. Cherry-picks commits from other forks as needed.
MIT License
98 stars 11 forks source link

Lights break in editor when bringing up other tabs/prefabs #111

Open phr00t opened 1 year ago

phr00t commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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