]> git.tdb.fi Git - libs/gl.git/commit
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)
commit4c11957c4e26b2c369f0399c85bafcb6eb58edd4
tree740c8d88fdbc8bf89c91df23e1ad0b5cdaa5f545
parent0ae56cb38a715c36c279a4f07ff4562830176dec
Adjust specular calculation in the Phong shader

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.
shaderlib/phong.glsl