Cycles: glossy and anisotropic BSDF changes
[blender.git] / intern / cycles / blender / blender_shader.cpp
index 226e7a76ddaee2741584a3284f136e6695b2b614..318ca10b81a334ac77570cd9a8b6c9a1b1633b94 100644 (file)
@@ -323,13 +323,18 @@ static ShaderNode *add_node(Scene *scene, BL::BlendData b_data, BL::Scene b_scen
 
                switch (b_aniso_node.distribution())
                {
+               case BL::ShaderNodeBsdfAnisotropic::distribution_SHARP:
+                       aniso->distribution = ustring("Sharp");
+                       break;
+               case BL::ShaderNodeBsdfAnisotropic::distribution_BECKMANN:
+                       aniso->distribution = ustring("Beckmann");
+                       break;
+               case BL::ShaderNodeBsdfAnisotropic::distribution_GGX:
+                       aniso->distribution = ustring("GGX");
+                       break;
                case BL::ShaderNodeBsdfAnisotropic::distribution_ASHIKHMIN_SHIRLEY:
                        aniso->distribution = ustring("Ashikhmin-Shirley");
                        break;
-               case BL::ShaderNodeBsdfAnisotropic::distribution_WARD:
-               default:
-                       aniso->distribution = ustring("Ward");
-                       break;
                }
 
                node = aniso;
@@ -367,6 +372,9 @@ static ShaderNode *add_node(Scene *scene, BL::BlendData b_data, BL::Scene b_scen
                case BL::ShaderNodeBsdfGlossy::distribution_GGX:
                        glossy->distribution = ustring("GGX");
                        break;
+               case BL::ShaderNodeBsdfGlossy::distribution_ASHIKHMIN_SHIRLEY:
+                       glossy->distribution = ustring("Ashikhmin-Shirley");
+                       break;
                }
                node = glossy;
        }