Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit0a13e47b57

readme.md

sky system

The render features that draw a scene's sky. Each writes one Sky row through sky.writeRow on a temporary entity its application owns, and the engine draws the row in force as the scene's sky.

  • backdrops/procedural: a gradient from a zenith colour through a horizon colour to a ground colour, with a sun disc and glow, stars and a moon, at a time of day that can run on its own (autoCycle). Lights that follow the sky take the sun's direction from its hour.

  • backdrops/material: a sky drawn by a sky-domain material (a shader whose domain is sky), with the values its material states.

  • skyLight: the light the scene takes from what is drawn behind it. It captures the drawn backdrop into a cube it owns and adds that cube's diffuse light and reflection to every lit surface, at its diffuse and reflection strengths.

A backdrop draws the sky and lights nothing; the scene takes light from it through a skyLight member. A backdrop is a member of a sky, or of any composition that applies its members; sky.drawn() reports the sky the row in force was written for.