]> git.tdb.fi Git - libs/gl.git/commitdiff
Avoid NaN issues in rare cases in the Cook-Torrance shader
authorMikko Rasa <tdb@tdb.fi>
Wed, 14 Apr 2021 15:09:36 +0000 (18:09 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 14 Apr 2021 15:09:36 +0000 (18:09 +0300)
The dot product may sometimes be very slightly over 1.0, making the
first argument to pow negative and giving undefined results.


No differences found