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

Merged
Weizhen Huang merged 1 commits from weizhen/blender:fix-coat-zero-weight into main 2024-07-17 13:54:42 +02:00

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.