Four viewports, each stepping the same moving object at its own fixed rate. Between updates the position is held, so low rates visibly stutter. Drag on any viewport to scrub its phase; tune the rate with the slider.
Click any stage to see what it does, how it is configured, and — for the programmable stages — the shader that runs there. ◆ rhomboid = data, ■ square = fixed, ▢ rounded = programmable, exactly like the slides. Press Walk the triangle to trace one primitive through the whole pipeline.
The direct approach: for every pixel, shoot a ray and find what it hits. Click the rendered image to trace that pixel's ray — the top-down schematic shows the hit, its normal (green) and the shadow ray to the sun. Drag the schematic to orbit the camera. This CPU tracer is deliberately simple and slow; a GPU casts billions of these.
So the Nyquist limit applies to pictures too: too few samples and high frequencies fold into moiré. The cures — filtering, mipmaps and supersampling — are the same idea as the sample-rate fix.
A simplified Cook-Torrance BRDF: GGX microfacet distribution, Schlick Fresnel and Smith geometry. Metalness moves the albedo from diffuse into the reflection, roughness blurs the highlight, and F0 sets how much a dielectric reflects at normal incidence. Drag to move the light.
A little bloom sells brightness and tone mapping keeps the highlights; a little vignette and grain add cinema. Too much chromatic aberration and it stops reading. Toggle each effect and judge it — and remember motion sickness / reduced-motion for the moving ones. Drag to move the sun.
A live editor over a WebGL fragment program. Standard uniforms (u_time,
u_resolution, u_mouse …) are provided;
add your own controls with // @slider, // @color and
// @toggle. Pick a preset (SDFs, a raymarcher, fBm, tone mapping …) to start from.
If the canvas stays blank, WebGL is unavailable in this browser/context. The editor still works, so you can read and
write shaders; run python3 serve.py --ssl or use localhost for a secure context.
Orbit the camera (drag the left view). Compare perspective and orthographic projection, change the FoV and try the dolly zoom; the right panel shows the frustum and near/far planes from above.
Subdivide a patch into an n×n grid and displace it with a height field. Raise the level to add detail; toggle the wireframe to see the generated geometry and the vertex/triangle counts.
A billboard turns one point into a camera-facing quad. Instancing draws the same blade many times with a single draw call — toggle the calls and watch the counter.
Top-down view: the dashed cone is the frustum, the amber line is an occluder. Toggle frustum and occlusion culling and watch the drawn/culled counters; switch on LOD to reduce distant detail.
Z-fighting grows as far/near grows; transparent surfaces depend on draw order; and overdraw is the fill-rate cost of many layers covering one pixel.
A small G-buffer (albedo / normal / depth) and up to 32 point lights. Switch to the G-buffer views to see what deferred shading stores, and compare the forward vs deferred cost bars.