Example 62 - multi-light, clustered lighting, and visible punctual shadows.
← All examples62_lights
Twelve animated punctual lights illuminate a small PBR scene. Core PBR consumes clustered light textures when enabled; bounded forward remains available for comparison and is the compatibility path used by GL 2.1. Directional cascades, one spot map, and one point-light cubemap are rendered through the normal material/pass path and sampled by the PBR receivers.

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.
- Number
- 62
- Tags
- Requires
MODKIT_ENABLE_PBRMODKIT_ENABLE_SHADOWS- Source
examples/62_lights/main.c
Build and run
./scripts/build-linux.sh release --target=62_lights --run