Merge branch 'blender-v4.2-release'
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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