Skip to content

Commit

Permalink
Clamp to zero rather than epsilon
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm committed Feb 11, 2025
1 parent 3649803 commit 4db5abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/pbrlib/genglsl/mx_translucent_bsdf.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void mx_translucent_bsdf(ClosureData closureData, float weight, vec3 color, vec3

if (closureData.closureType == CLOSURE_TYPE_REFLECTION)
{
float NdotL = clamp(dot(N, L), M_FLOAT_EPS, 1.0);
float NdotL = clamp(dot(N, L), 0.0, 1.0);
bsdf.response = color * weight * NdotL * M_PI_INV;
}
else if (closureData.closureType == CLOSURE_TYPE_INDIRECT)
Expand Down

0 comments on commit 4db5abe

Please sign in to comment.