All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Exploring an Alternative Diffuse Shading Model for Computer Graphics

By

ibobev

5mo ago· 5 min readenInsight

Summary

This article presents a humorous, intentionally flawed diffuse shading model for computer graphics as a New Year's Eve thought experiment. The author critiques the standard Lambertian diffuse lighting model (max(0, L·N)) and proposes an alternative 'silly' model that uses the absolute value of the dot product (|L·N|) instead. The article explores the mathematical and visual implications of this alternative approach, discussing how it would affect lighting calculations, particularly for surfaces facing away from light sources, and serves as a playful exploration of graphics programming concepts.

Key quotes

· 5 pulled
We all know that the proper lighting factor (i.e. proportion of reflected incoming light) for a completely diffuse (aka Lambertian) surface is max(0, L·N).
What if we used the absolute value of the dot product instead? That is, what if we used |L·N| instead of max(0, L·N)?
This is a silly model because it doesn't make physical sense - surfaces facing away from the light source shouldn't be lit at all!
But it's interesting to think about what would happen if we used this model anyway.
Happy New Year for those who celebrate! Happy Arbitrarily Chosen Point in Earth's Orbit for those who don't!
Snippet from the RSS feed
A silly diffuse shading model

You might also wanna read