<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Shader Techniques on Fragment Shack</title><link>https://fragmentshack.com/series/shader-techniques/</link><description>Recent content in Shader Techniques on Fragment Shack</description><image><title>Fragment Shack</title><url>https://fragmentshack.com/images/og-image.png</url><link>https://fragmentshack.com/images/og-image.png</link></image><generator>Hugo</generator><language>en-GB</language><lastBuildDate>Sun, 22 Nov 2026 09:15:00 +0000</lastBuildDate><atom:link href="https://fragmentshack.com/series/shader-techniques/index.xml" rel="self" type="application/rss+xml"/><item><title>💎 Flat Shading with ddx and ddy: Normals from Nowhere</title><link>https://fragmentshack.com/posts/flat-shading-ddx-ddy/</link><pubDate>Sun, 22 Nov 2026 09:15:00 +0000</pubDate><guid>https://fragmentshack.com/posts/flat-shading-ddx-ddy/</guid><description>Build each triangle&amp;rsquo;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.</description></item><item><title>🧰 Using ddx and ddy: Mipmaps and Smooth Edges</title><link>https://fragmentshack.com/posts/ddx-ddy-mipmaps-fwidth/</link><pubDate>Sun, 22 Nov 2026 09:10:00 +0000</pubDate><guid>https://fragmentshack.com/posts/ddx-ddy-mipmaps-fwidth/</guid><description>The two uses of ddx and ddy you&amp;rsquo;ll meet most: choosing a texture&amp;rsquo;s mipmap level, and smooth edges at any zoom with fwidth. With live WebGL demos.</description></item><item><title>📐 ddx and ddy Explained: Shader Derivatives, Pixel by Pixel</title><link>https://fragmentshack.com/posts/ddx-ddy-shader-derivatives-explained/</link><pubDate>Sun, 22 Nov 2026 09:00:00 +0000</pubDate><guid>https://fragmentshack.com/posts/ddx-ddy-shader-derivatives-explained/</guid><description>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.</description></item><item><title>🌀 Ray Marching: Drawing 3D Worlds with Distance Functions</title><link>https://fragmentshack.com/posts/sdf-ray-marching/</link><pubDate>Sat, 21 Nov 2026 09:35:00 +0000</pubDate><guid>https://fragmentshack.com/posts/sdf-ray-marching/</guid><description>With a 3D distance function, a fragment shader can draw a whole scene without a single triangle: march a ray from each pixel, jumping as far as the distance allows. Watch the jumps, then explore a live scene. Part 4 of the signed distance fields series.</description></item><item><title>🔤 SDF Text: Crisp Letters from Tiny Textures</title><link>https://fragmentshack.com/posts/sdf-text/</link><pubDate>Sat, 21 Nov 2026 09:30:00 +0000</pubDate><guid>https://fragmentshack.com/posts/sdf-text/</guid><description>Store the distance to a letter&amp;rsquo;s edge in a texture instead of the letter itself, and it stays razor sharp when magnified, with outlines, glows and bold text for free. Part 3 of the signed distance fields series.</description></item><item><title>🫠 Combining SDFs: Unions, Smooth Blends and Bending Space</title><link>https://fragmentshack.com/posts/sdf-combining-shapes/</link><pubDate>Sat, 21 Nov 2026 09:25:00 +0000</pubDate><guid>https://fragmentshack.com/posts/sdf-combining-shapes/</guid><description>Two lines of maths join, cut and melt shapes together, and a few more repeat, mirror and twist them, endlessly, for free. Part 2 of the signed distance fields series.</description></item><item><title>🔵 Signed Distance Fields: Shapes Made of Distances</title><link>https://fragmentshack.com/posts/signed-distance-fields/</link><pubDate>Sat, 21 Nov 2026 09:20:00 +0000</pubDate><guid>https://fragmentshack.com/posts/signed-distance-fields/</guid><description>Describe a shape by how far every point is from its edge, and you get crisp edges at any size, easy outlines and much more. See how circles, boxes, lines and polygons are written as distance functions.</description></item></channel></rss>