Merge branch 'blender-v4.2-release'

This commit is contained in:
Miguel Pozo
2024-06-11 16:56:05 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ void forward_lighting_eval(float thickness, out vec3 radiance, out vec3 transmit
ClosureUndetermined cl = g_closure_get(i);
if (!valid_N && (cl.weight > 0.0)) {
surface_N = cl.N;
valid_N = true;
}
closure_light_set(stack, i, closure_light_new(cl, V));
}

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);
}