Improved the clearcoat part by using GTR1 instead of GTR2
[blender.git] / intern / cycles / kernel / osl / osl_closures.cpp
index 1dac0910a362a363b452d51f016f27e1fb0a0529..4d51dda7197345706515de41b2a8b22ad8f4d148 100644 (file)
@@ -205,6 +205,7 @@ public:
                        bsdf->alpha_y = 0.1f * (1.0f - clearcoat_gloss) + 0.001f * clearcoat_gloss;
 
                        bsdf->extra->cspec0 = make_float3(0.04f, 0.04f, 0.04f);
+                       bsdf->extra->clearcoat = clearcoat;
 
                        return bsdf;
                }