clampNoV function ignores argument
The "clampNoV" shader function is ignoring the passed dot product argument and recomputing the dot product itself. This will result in the wrong NoV value being used for clear coat IBL computations.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
float clampNoV(float NoV) {
|
||||
// Neubelt and Pettineo 2013, "Crafting a Next-gen Material Pipeline for The Order: 1886"
|
||||
return max(dot(shading_normal, shading_view), MIN_N_DOT_V);
|
||||
return max(NoV, MIN_N_DOT_V);
|
||||
}
|
||||
|
||||
vec3 computeDiffuseColor(const vec4 baseColor, float metallic) {
|
||||
|
||||
Reference in New Issue
Block a user