Fix refraction BSDF color when using OSL

This commit is contained in:
Lukas Stockner
2023-06-05 01:00:19 +02:00
parent 2ce5fc4a3e
commit 81f127a7e4

View File

@@ -14,5 +14,5 @@ shader node_refraction_bsdf(color Color = 0.8,
float eta = backfacing() ? 1.0 / f : f;
float roughness = Roughness * Roughness;
BSDF = microfacet(distribution, Normal, roughness, eta, 1);
BSDF = Color * microfacet(distribution, Normal, roughness, eta, 1);
}