This was caused by precision issue that made `sqrt(1.0f - NV2)` evaluate to NaN. Making sure the input is saturated fixes the issue. Pull Request: https://projects.blender.org/blender/blender/pulls/140071
This was caused by precision issue that made `sqrt(1.0f - NV2)` evaluate to NaN. Making sure the input is saturated fixes the issue. Pull Request: https://projects.blender.org/blender/blender/pulls/140071