<?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>Lighting on Fragment Shack</title><link>https://fragmentshack.com/tags/lighting/</link><description>Recent content in Lighting 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:10:00 +0000</lastBuildDate><atom:link href="https://fragmentshack.com/tags/lighting/index.xml" rel="self" type="application/rss+xml"/><item><title>⚫ The Dot Product: How Much Do Two Directions Agree?</title><link>https://fragmentshack.com/posts/dot-product/</link><pubDate>Sun, 22 Nov 2026 12:10:00 +0000</pubDate><guid>https://fragmentshack.com/posts/dot-product/</guid><description>One tiny calculation, three multiplications and two additions, answers &amp;lsquo;do these point the same way?&amp;rsquo;. It&amp;rsquo;s behind lighting, field-of-view checks and much more. Drag two arrows and see.</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>🌑 Shadow Mapping: Seeing the Scene from the Light</title><link>https://fragmentshack.com/posts/shadow-mapping/</link><pubDate>Sat, 21 Nov 2026 09:10:00 +0000</pubDate><guid>https://fragmentshack.com/posts/shadow-mapping/</guid><description>How games draw shadows: render the scene&amp;rsquo;s depth from the light&amp;rsquo;s point of view, then check every pixel against it. See the shadow map itself, and the acne, jaggies and blur that come with it.</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>🌗 sRGB and Gamma: Why 50% Grey Isn’t Half as Bright</title><link>https://fragmentshack.com/posts/srgb-gamma/</link><pubDate>Fri, 20 Nov 2026 09:40:00 +0000</pubDate><guid>https://fragmentshack.com/posts/srgb-gamma/</guid><description>The numbers in an image aren&amp;rsquo;t amounts of light. Find the grey that really is half as bright, then see what goes wrong when blending and lighting ignore it.</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></channel></rss>