All examples · Meshes and 3D · As Markdown, for AIs

Lighting

What this example shows

Three kinds of light: a sun with a direction and no place, a lamp with a place that fades out with distance, and a torch, a lamp narrowed to a cone.

An object gives off as many lights as it asks for, each placed by its own transform, so these are three calls in the scene. Each model is lit by the eight of the scene's lights that reach it most, which is what the GameCube offered for each thing it drew. The sun sweeps round while the blue lamp only reaches what is near it.

Starting
Starting
—