Log inGet started
Package

example_sky_drives_lights.sceneSetup

Newest version

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

README.md

Example: a sky that drives the lights

An example scene setup. It composes a sky drawn by the procedural backdrop, a directional light that follows that sky, an ambient light, a sky light and height fog.

What it demonstrates: the sky states the time of day once, and the light that follows it takes its direction, colour and strength from the sun the sky draws. Moving sky/backdrop/timeOfDay moves the sun in the sky and the light on the scene together; the ambient light and the fog keep what they state. The sky light member lights the scene's surfaces from the sky the backdrop draws, since a backdrop only draws.

Its sky and lights are its own assets, in this folder: sky.sky, sun.sceneLight and ambient.sceneLight.