All examples · Meshes and 3D

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.

One light per object, so each of these is made inside its own useSpawn: a lamp is a thing in the world and two lamps are two things. Eight shine at once, which is exactly what the GameCube offered. The sun sweeps round while the blue lamp only reaches what is near it.

Starting