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.00u.resolution 0 × 0u.mouse 0, 0shadow map 1024 × 1024lamp_vs and vs_main each run 3048 times a frame0 fps
u.mvp and u.lamp_mvp, made once a frame from these numbers
1
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)