From: Mikko Rasa Date: Wed, 14 Apr 2021 15:09:36 +0000 (+0300) Subject: Avoid NaN issues in rare cases in the Cook-Torrance shader X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;ds=sidebyside;h=47fa42594ef79dfe8c95edeeda11e9a9492e35bf;hp=47fa42594ef79dfe8c95edeeda11e9a9492e35bf;p=libs%2Fgl.git Avoid NaN issues in rare cases in the Cook-Torrance shader The dot product may sometimes be very slightly over 1.0, making the first argument to pow negative and giving undefined results. ---