Skip to content

💡 Basic Lighting: Ambient, Diffuse and Specular

How a shader fakes light with three simple terms: ambient, diffuse and specular. Learn Lambert’s cosine law, the Blinn-Phong highlight, and why lighting per pixel beats lighting per vertex.

19 November 2026 Â· ~10 min read Â· 2 interactive demos