THREE.JS / LIGHTS / SPOTLIGHT
A cone with a target.
A shadow-casting SpotLight projects a cookie map through a mutable cone. The lab keeps its target, shadow camera, helper geometry, and teardown boundaries visible.
INITIALIZING SPOTLIGHT—
Building a deterministic shadow scene…
- light
- SpotLight
- map
- target
- marker @ 0, 0, −1.2
- shadow
- 512² / focus 1
- helpers
- hidden
- draw calls
- —
- frames
- 0
- sample
- NOT RUN
The frame-time sample is local WebGL2 preview evidence only; whole-example fidelity remains separate.
Sources: SpotLight · SpotLightShadow · SpotLightHelper · official example