FIx #122915: Diffuse normal input isn't normalized automatically

This commit is contained in:
Miguel Pozo
2024-06-11 16:51:04 +02:00
parent 60190a7ea7
commit fb5faf3305

View File

@@ -7,7 +7,7 @@ void node_bsdf_diffuse(vec4 color, float roughness, vec3 N, float weight, out Cl
ClosureDiffuse diffuse_data;
diffuse_data.weight = weight;
diffuse_data.color = color.rgb;
diffuse_data.N = N;
diffuse_data.N = safe_normalize(N);
result = closure_eval(diffuse_data);
}