Ray Lab

CS 453, lecture 31: the shadow ray returns. Lecture 30's Shadow Lab, with Suzanne's 968 triangles in a buffer fs_main can read, so each point can send its own shadow ray. 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 the GPU takes – ms a frame
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, the shadow map and the triangles (code/rays.py)