editor icon indicating copy to clipboard operation
editor copied to clipboard

Add clustered lighting editor options

Open yaustar opened this issue 3 years ago • 4 comments
trafficstars

Beyond the addition of the Clustered Lighting Editor options as the engine makes the move to use Clustered Lighting as default in Engine v1.55, we should also consider the following:

  • [ ] Should be this opt in for existing projects and only new projects will had clustered lighting enabled by default?
  • [ ] As clustered lighting only has support for some shadow map types, do we need to disable the settings on the individual lights themselves?
  • [ ] Do we need to add engine scene settings change/addition so that it can be configured on startup to reduce unneeded work/calls?

yaustar avatar Jul 25 '22 09:07 yaustar

cc @mvaligursky @willeastcott @GSterbrant

slimbuck avatar Jul 25 '22 10:07 slimbuck

I believe if force updating projects to clustered lighting will result in the need for migrations and/or break some existing projects due to their custom setup, then it should not affect existing projects, but provide documentation on how to switch and migrate to clustered.

This is especially important to near-production projects that developers are about to release, as disturbing them by unexpected behaviors or bugs - will be bad. imho.

Maksims avatar Jul 25 '22 11:07 Maksims

This transition needs to be managed carefully, for sure. I just want to point out that the clustered lighting is designed to fully replace the old lighting system over time. The old code paths will be removed once we are confident clustered lighting fulfills everyone's needs. So while 1.55.0 will switch clustered lighting to be on by default and you'll be able to disable it if necessary....the 'legacy' lighting will not be around forever. I can't say when it'll be removed but it'll be some upcoming minor release in the not-too-distant future.

willeastcott avatar Jul 26 '22 23:07 willeastcott

The plan for the Editor:

  • enable clustered lighting by default
  • add 'clustered enabled' as well as all clustered lighting options to Settings->Rendering. This allows the users to disable clustered lighting if not desired (initially).
  • hide / modify light properties to reflect the current mode (for example hide per light shadow filtering option when clustered lighting is enabled)

related engine issue: https://github.com/playcanvas/engine/issues/4576

mvaligursky avatar Aug 22 '22 13:08 mvaligursky

This is now in the editor

yaustar avatar Sep 09 '22 15:09 yaustar