Log inGet started
Package

sceneLighting.package

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

sceneLighting

Scene setups that light a whole scene with the engine's real-time lighting in one placement, and a scene that shows them.

  • dynamicLighting.sceneSetup: a sky whose hour drives a sun and a moon, the sky light, ray-traced probe global illumination, ambient occlusion, contact shadows, height fog, exposure that adapts from day to night, temporal anti-aliasing and screen-space reflections. Its sky, sun and moon are the assets beside it: dynamicSky.sky, dynamicSun.sceneLight and dynamicMoon.sceneLight.
  • dynamicLightingShowcase.scene: a cottage in a garden lit by dynamicLighting, with a room lit through its windows, lamps inside and out, trees and bushes, a glossy terrace and a mirror ball.

Place the setup in any scene:

asset.resolve("@builtin::systems.sceneLighting.dynamicLighting", "sceneSetup")
    :instantiate(nil, { name = "lighting" })

and set sky/backdrop/timeOfDay on the placement to move the scene between day and night.