<?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>Shaders on Fragment Shack</title><link>https://fragmentshack.com/tags/shaders/</link><description>Recent content in Shaders 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 12:40:00 +0000</lastBuildDate><atom:link href="https://fragmentshack.com/tags/shaders/index.xml" rel="self" type="application/rss+xml"/><item><title>🎚️ Interpolation: Lerp, Smoothstep and Easing</title><link>https://fragmentshack.com/posts/interpolation-lerp-smoothstep/</link><pubDate>Sun, 22 Nov 2026 12:40:00 +0000</pubDate><guid>https://fragmentshack.com/posts/interpolation-lerp-smoothstep/</guid><description>Blending smoothly from one value to another is everywhere in graphics: colours, positions, textures, animation. Meet lerp, its reverse, remapping, smoothstep and easing curves.</description></item><item><title>👻 Helper Pixels: The Hidden Cost of ddx and ddy</title><link>https://fragmentshack.com/posts/helper-pixels-ddx-ddy/</link><pubDate>Sun, 22 Nov 2026 09:20:00 +0000</pubDate><guid>https://fragmentshack.com/posts/helper-pixels-ddx-ddy/</guid><description>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.</description></item><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>⚙️ How GPUs Run Shaders: Lockstep, Divergence and Hiding Latency</title><link>https://fragmentshack.com/posts/gpu-shader-execution/</link><pubDate>Sat, 21 Nov 2026 10:00:00 +0000</pubDate><guid>https://fragmentshack.com/posts/gpu-shader-execution/</guid><description>A graphics card runs shaders in groups of 32 or 64 that all execute the same instruction at once. See what that means for if statements, and how GPUs hide slow memory by juggling groups.</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>🫠 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><item><title>🧱 Normal Mapping: Detail Without Triangles</title><link>https://fragmentshack.com/posts/normal-mapping/</link><pubDate>Sat, 21 Nov 2026 09:00:00 +0000</pubDate><guid>https://fragmentshack.com/posts/normal-mapping/</guid><description>A flat square can look like a bumpy brick wall if each pixel lies about which way it faces. See how normal maps store those directions, and why they&amp;rsquo;re always blue.</description></item><item><title>💡 Basic Lighting: Ambient, Diffuse and Specular</title><link>https://fragmentshack.com/posts/basic-lighting/</link><pubDate>Thu, 19 Nov 2026 10:00:00 +0000</pubDate><guid>https://fragmentshack.com/posts/basic-lighting/</guid><description>How a shader fakes light with three simple terms: ambient, diffuse and specular. Learn Lambert&amp;rsquo;s cosine law, the Blinn-Phong highlight, and why lighting per pixel beats lighting per vertex.</description></item><item><title>🎨 Fragment Shaders: Colouring Every Pixel</title><link>https://fragmentshack.com/posts/fragment-shaders-interpolation/</link><pubDate>Tue, 17 Nov 2026 10:00:00 +0000</pubDate><guid>https://fragmentshack.com/posts/fragment-shaders-interpolation/</guid><description>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.</description></item><item><title>📍 Vertex Shaders: A Tiny Program for Every Corner</title><link>https://fragmentshack.com/posts/vertex-shaders/</link><pubDate>Sat, 14 Nov 2026 10:00:00 +0000</pubDate><guid>https://fragmentshack.com/posts/vertex-shaders/</guid><description>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&amp;rsquo;t do.</description></item><item><title>🏭 The Graphics Pipeline: How Triangles Become Pixels</title><link>https://fragmentshack.com/posts/graphics-pipeline/</link><pubDate>Mon, 09 Nov 2026 10:00:00 +0000</pubDate><guid>https://fragmentshack.com/posts/graphics-pipeline/</guid><description>The six steps every graphics card follows to turn a list of triangles into a finished image. Step through each one, then count how often each shader really runs.</description></item></channel></rss>