Shadow Lab

CS 453, lecture 30: shadow maps. Lecture 29's Suzanne Lab, drawn twice a frame: pass 1 from the spot into the shadow map, pass 2 from the eye. Pick a You Try, guess the picture, then change fs_main.
u.time 0.00 u.resolution 0 × 0 u.mouse 0, 0 shadow map 1024 × 1024 lamp_vs and vs_main each run 3048 times a frame 0 fps
Starting WebGPU…

The shader recompiles as you type. Ctrl+Enter runs it now. A broken shader leaves the last good picture on screen.

The given part: the uniforms u and the shadow map (code/shadows.py)