]> git.tdb.fi Git - libs/gl.git/commitdiff
Adjust specular calculation in the Phong shader
authorMikko Rasa <tdb@tdb.fi>
Mon, 12 Apr 2021 14:40:04 +0000 (17:40 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 12 Apr 2021 14:40:04 +0000 (17:40 +0300)
Since the look vector points towards the surface, it makes more sense
to calculate the reflected vector towards the light.  The calculation
is symmetric so the result is the same.


No differences found