Skip to content

🎯 Rays and Intersections: Does This Line Hit That Shape?

A ray is a starting point and a direction. Asking where it hits something powers mouse picking, bullets, shadows and ray tracing. Build a ray-circle test from what you already know, then trace a tiny picture.

22 November 2026 · ~9 min read · 2 interactive demos

🎚️ Interpolation: Lerp, Smoothstep and Easing

Blending smoothly from one value to another is everywhere in graphics: colours, positions, textures, animation. Meet lerp, its reverse, remapping, smoothstep and easing curves.

22 November 2026 · ~10 min read · 2 interactive demos

〰️ Angles, Sine and Cosine: Going Round in Circles

Sine and cosine are just the x and y of a point going round a circle. That simple idea gives you rotation, smooth waves, orbits and animation. Spin the point and shape a wave.

22 November 2026 · ~9 min read · 2 interactive demos

✖️ The Cross Product: Finding the Direction at Right Angles

Give the cross product two directions and it hands back a third, at right angles to both. It’s how graphics finds which way a triangle faces, which side of a line a point is on, and how cameras get their axes.

22 November 2026 · ~9 min read · 2 interactive demos

⚫ The Dot Product: How Much Do Two Directions Agree?

One tiny calculation, three multiplications and two additions, answers ‘do these point the same way?’. It’s behind lighting, field-of-view checks and much more. Drag two arrows and see.

22 November 2026 · ~8 min read · 2 interactive demos

🧭 Coordinates and Vectors: Arrows That Describe Space

Nearly every number in graphics is a position or a direction. Learn what coordinates and vectors are, and how to add, subtract, scale and measure them, by dragging arrows around.

22 November 2026 · ~9 min read · 2 interactive demos

🌗 sRGB and Gamma: Why 50% Grey Isn’t Half as Bright

The numbers in an image aren’t amounts of light. Find the grey that really is half as bright, then see what goes wrong when blending and lighting ignore it.

20 November 2026 · ~9 min read · 2 interactive demos

🛤️ Anisotropic Filtering: Sharp Textures at Steep Angles

Trilinear filtering turns floors and roads seen at a low angle into blur. Anisotropic filtering fixes it by sampling along the pixel’s stretched footprint. Compare them side by side.

20 November 2026 · ~9 min read · 2 interactive demos

🪆 Mipmaps and Trilinear Filtering: Stopping Distant Textures from Shimmering

Distant textures sparkle and swirl because each pixel covers many texels. Mipmaps fix it with pre-shrunk copies of the texture. Build a mip chain, then drive over a floor with and without one.

20 November 2026 · ~9 min read · 2 interactive demos

🔍 Texture Filtering: Nearest and Bilinear

A pixel’s UV almost never lands exactly on a texel. Nearest filtering picks one; bilinear blends four. Zoom into a tiny texture and see exactly which texels are mixed, and by how much.

20 November 2026 · ~8 min read · 1 interactive demo

🧵 Textures and UV Coordinates: Wrapping Images onto Shapes

How a flat image gets wrapped onto a 3D surface. Drag a shape’s UV coordinates around a texture, and see what happens when they go past the edge.

20 November 2026 · ~8 min read · 1 interactive demo

💡 Basic Lighting: Ambient, Diffuse and Specular

How a shader fakes light with three simple terms: ambient, diffuse and specular. Learn Lambert’s cosine law, the Blinn-Phong highlight, and why lighting per pixel beats lighting per vertex.

19 November 2026 · ~10 min read · 2 interactive demos