<?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>HLSL on Fragment Shack</title><link>https://fragmentshack.com/tags/hlsl/</link><description>Recent content in HLSL 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:20:00 +0000</lastBuildDate><atom:link href="https://fragmentshack.com/tags/hlsl/index.xml" rel="self" type="application/rss+xml"/><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>🧮 Matrix Conventions: Rows, Columns, Handedness and Depth</title><link>https://fragmentshack.com/posts/matrix-conventions/</link><pubDate>Sun, 15 Nov 2026 10:00:00 +0000</pubDate><guid>https://fragmentshack.com/posts/matrix-conventions/</guid><description>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.</description></item></channel></rss>