Fix #111156: Principled BSDF transmission not rendering in OSL

After recent changes.

Pull Request: https://projects.blender.org/blender/blender/pulls/111157
This commit is contained in:
Alaska
2023-08-16 10:14:00 +02:00
committed by Brecht Van Lommel
parent acbd952abf
commit 71587663ac

View File

@@ -78,7 +78,7 @@ shader node_principled_bsdf(string distribution = "multi_ggx",
}
closure color TransmissionBSDF = 0;
if (Metallic < 1.0 && Transmission > 1.0) {
if (Metallic < 1.0 && Transmission > 0.0) {
color reflectTint = mix(color(1.0), BaseColor, SpecularTint);
float eta = max(IOR, 1e-5);
eta = backfacing() ? 1.0 / eta : eta;