alt.hn

1/1/2026 at 9:26:49 PM

A silly diffuse shading model

https://lisyarus.github.io/blog/posts/a-silly-diffuse-shading-model.html

by ibobev

1/1/2026 at 11:21:21 PM

Isn't that just Half-Lambert that Valve came up with for Half-Life?

"To soften the diffuse contribution from local lights, the dot product from the Lambertian model is scaled by ½, add ½ and squared. The result is that this dot product, which normally lies in the range of -1 to +1, is instead in the range of 0 to 1 and has a more pleasing falloff. "

https://developer.valvesoftware.com/wiki/Half_Lambert

by skocznymroczny

1/2/2026 at 1:36:39 AM

It is. Takes me back to asking valve about this for my bachelor thesis 15 years ago and getting a personal reply from Gabe Newell who CC’d the developer who came up with the formula, him being all giggly whether I also want to know about skeletal animation that he came up with or the lip sync stuff. Fun guys

by eska

1/2/2026 at 6:28:27 AM

If it looks good, it's correct.

by aappleby