Skip to content

Commit 47a6332

Browse files
Fix bug in multiply_bsdf for GLSL (#2328)
This change list fixes a bug in the GLSL implementation of node multiply_bsdf, as logged in #2324.
1 parent 9cceab0 commit 47a6332

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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)