Skip to main content

Module sky

Module sky 

Source
Expand description

The rotating celestial sphere: the orientation a world’s SkyRotation is at this tick, and the system that advances it.

One rotation drives every consumer, so the sky, the image-based lighting it provides, the directional lights, and the props hung on it never disagree: the environment cubes are sampled through it, each directional light’s authored direction is turned by it, and the component’s own entity carries it as a transform for the hierarchy to compose.

Structs§

SkyOrientation
Where the celestial sphere has turned to, published once per tick by SkyRotationSystem and read by every consumer of the sky.
SkyRotationSystem
Advances the world’s celestial-sphere rotation on the fixed timestep.