Skip to content

👻 Helper Pixels: The Hidden Cost of ddx and ddy

The rules for using ddx and ddy safely, and helper pixels: the extra, invisible fragment shader runs that 2×2 groups need. See them on your own GPU.

22 November 2026 · ~10 min read · 1 interactive demo

💎 Flat Shading with ddx and ddy: Normals from Nowhere

Build each triangle’s normal in the fragment shader from ddx and ddy of its position: a faceted, low-poly look with no extra mesh data. Plus more uses for derivatives.

22 November 2026 · ~6 min read · 1 interactive demo

🧰 Using ddx and ddy: Mipmaps and Smooth Edges

The two uses of ddx and ddy you’ll meet most: choosing a texture’s mipmap level, and smooth edges at any zoom with fwidth. With live WebGL demos.

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

📐 ddx and ddy Explained: Shader Derivatives, Pixel by Pixel

What ddx and ddy (dFdx and dFdy in GLSL) tell a shader, and how the graphics card works them out by comparing neighbouring pixels in 2×2 groups, with interactive WebGL demos.

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

🎨 Fragment Shaders: Colouring Every Pixel

How values are blended smoothly across a triangle, how a fragment shader turns them into a colour, and why perspective needs special care. Includes a live fragment shader editor.

17 November 2026 · ~11 min read · 3 interactive demos

🧮 Matrix Conventions: Rows, Columns, Handedness and Depth

Row or column vectors? Row-major or column-major memory? Left- or right-handed? Depth from 0 or −1? Untangle the conventions that trip up everyone, and see which combinations really work.

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

📍 Vertex Shaders: A Tiny Program for Every Corner

The vertex shader runs once for every vertex, placing it on screen and passing data along. Edit one live: make waves, twist shapes and see exactly what it can and can’t do.

14 November 2026 · ~10 min read · 1 interactive demo