Initial SunLightable layers to drive (more can be added later).
When false, RendererSunController.update is a no-op (the geo-sun system is disabled). The facade still calls RendererSunController.clearLighting on the disable transition to revert the layers to their baseline look.
Revert every target to its baseline (no-sun) lighting (on the disable transition).
Remove a previously added target.
The layer to stop driving.
Toggle the cast-shadow pass on every target that supports it.
Whether shadows should be on.
Push the sun to every target's setSunState. No-op while
RendererSunController.enabled is false.
A SunConsumer that fans the SunState out to Bitruvius WebGL2 layers for REAL lighting (and, later, shadows). Targets implement SunLightable. Kept renderer-agnostic (no
@bitruvius/meshimport) so atmosphere depends on no renderer package. Created and managed for you by setTimeOfDay (itslayersoption + Atmosphere.addLayer / Atmosphere.removeLayer).Example