1.2 KiB
1.2 KiB
ADR 0011: Scene lighting policy (project sun vs scene sun)
Status
Accepted
Context
A single scene-authored directional LightDesc hides the runtime ProjectSun, which can make outdoor levels appear black if lux values are wrong. Project Settings ambient/sun did not always apply live after Apply.
Decision
ProjectSunis the default outdoor directional; scene-authored directionals override it (existingsync_project_sun_visibilitybehavior).- Editor commands (Scene menu + Rendering Diagnostics): Use project sun (remove scene directionals) and Bake scene sun from project (spawn directional
LightDescfrom currentsun_illuminance). - On
ProjectSettingsChanged, the editor applies ambient light,sync_project_sun_illuminance, andsync_project_sun_visibility; render view refreshes via existingProjectSettingschange detection. - Legacy directional lux < 1000 is corrected in schema migration to
100_000lux (documented default), not at hydration time.
Consequences
- Status/diagnostics UI should surface sun override state (Rendering Diagnostics panel).
- Designers use authoring
LightDescunits: lumens (point/spot), lux (directional).