Skip to content

Commit 7c5cda3

Browse files
Fix bug in multiply_bsdf for GLSL
1 parent 7f72a86 commit 7c5cda3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/pbrlib/genglsl/mx_multiply_bsdf_color3.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ void mx_multiply_bsdf_color3(ClosureData closureData, BSDF in1, vec3 in2, out BS
44
{
55
vec3 tint = clamp(in2, 0.0, 1.0);
66
result.response = in1.response * tint;
7-
result.throughput = in1.throughput * tint;
7+
result.throughput = in1.throughput;
88
}

libraries/pbrlib/genglsl/mx_multiply_bsdf_float.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ void mx_multiply_bsdf_float(ClosureData closureData, BSDF in1, float in2, out BS
44
{
55
float weight = clamp(in2, 0.0, 1.0);
66
result.response = in1.response * weight;
7-
result.throughput = in1.throughput * weight;
7+
result.throughput = in1.throughput;
88
}

0 commit comments

Comments
 (0)