Cycles: glossy and anisotropic BSDF changes
[blender.git] / intern / cycles / kernel / shaders / node_glossy_bsdf.osl
index b4e0fe622235b9380d5ac46d7381ba4e421a3af6..5c727ca69175d1c3856bd453c21b4204fabca580 100644 (file)
@@ -19,7 +19,7 @@
 
 shader node_glossy_bsdf(
        color Color = 0.8,
-       string distribution = "Beckmann",
+       string distribution = "GGX",
        float Roughness = 0.2,
        normal Normal = N,
        output closure color BSDF = 0)
@@ -30,6 +30,8 @@ shader node_glossy_bsdf(
                BSDF = Color * microfacet_beckmann(Normal, Roughness);
        else if (distribution == "GGX")
                BSDF = Color * microfacet_ggx(Normal, Roughness);
+       else
+               BSDF = Color * ashikhmin_shirley(Normal, vector(0, 0, 0), Roughness, Roughness);
 
 }