]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/properties.py
Export shadow settings from Blender
[libs/gl.git] / blender / io_mspgl / properties.py
index 7fad772bb4fc96669dbba5facef15df16037b1c5..0648946e749a7ccd2f15e9d4ca189c6fd6d142ad 100644 (file)
@@ -88,6 +88,8 @@ class MspGLMaterialProperties(bpy.types.Panel):
                elif mat.render_mode=='EXTERNAL':
                        self.layout.prop(mat, "technique")
                self.layout.prop(mat, "array_atlas")
+               if mat.render_mode=='BUILTIN':
+                       self.layout.prop(mat, "receive_shadows")
                if mat.array_atlas:
                        self.layout.prop(mat, "array_layer")
                if mat.render_mode!='EXTERNAL':
@@ -223,6 +225,7 @@ def register_properties():
                        ("EXTERNAL", "External technique", "Use an externally defined technique")))
        bpy.types.Material.technique = bpy.props.StringProperty(name="Custom technique", description="Name of an external technique to use for rendering")
        bpy.types.Material.shader = bpy.props.StringProperty(name="Custom shader", description="Name of an external technique to use for rendering")
+       bpy.types.Material.receive_shadows = bpy.props.BoolProperty(name="Receive shadows", description="Receive shadows from a shadow map", default=True)
        bpy.types.Material.array_atlas = bpy.props.BoolProperty(name="Texture array atlas", description="The material is stored in a texture array")
        bpy.types.Material.array_layer = bpy.props.IntProperty("Texture array layer", description="Layer of the texture array atlas to use")
        bpy.types.Material.material_atlas = bpy.props.BoolProperty(name="Material atlas", description="Make this material part of a material atlas")