FIx #122915: Diffuse normal input isn't normalized automatically
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user