Light

:= []

Builds the Lights that your game puts in Scene.nodes with the Light tag. A colour carries its intensity and can exceed 1.

ambient : Rgb -> Light

Light from all directions.

directional : Vec3, Rgb -> Light

Light that travels along dir and casts no shadow.

sun : Vec3, Rgb -> Light

A Directional light that casts a shadow. Only the first one in a depth-first walk of Scene.nodes casts a shadow.

point : Vec3, Rgb, F32 -> Light

Light from pos that falls off to zero at range.