GPU Texture Caching ⚙️, Jonathan Blow Engine 🎮, Indie Dev Lessons 👨💻
🎨 Rendering & Shading Tricks
Fixing Black Lambert Shadows: A Silly Little Shading Trick
Classic Lambert shading makes half your model vanish into black when you’re testing with a single light and no textures. This post introduces a tiny one-line hack: remap the N·L term from [-1, 1] to [0, 1], then square it, preserving smooth gradients on shadowed areas while staying close to Lambert in lit regions. The author shows this “silly” trick is actually the exact Hermite interpolation matching Lambert’s value and slope at key points. It’s a cheap,...
