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:
committed by
Weizhen Huang
parent
9a69d0cc9f
commit
c7c55894e4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user