Fix: EEVEE principled coat has tint when the weight is zero

caused by 26eb5d9899

Pull Request: https://projects.blender.org/blender/blender/pulls/124856
This commit is contained in:
Weizhen Huang
2024-07-17 13:54:26 +02:00
committed by Weizhen Huang
parent 9a69d0cc9f
commit c7c55894e4

View File

@@ -134,6 +134,9 @@ void node_bsdf_principled(vec4 base_color,
coat_tint.rgb = mix(vec3(1.0), pow(coat_tint.rgb, vec3(1.0 / NT)), saturate(coat_weight));
}
}
else {
coat_tint.rgb = vec3(1.0);
}
/* Emission component.
* Attenuated by sheen and coat.