X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2Fproperties.py;h=9d46e1286c723374f7a9b94a7ba7ea0ee5104d70;hp=0648946e749a7ccd2f15e9d4ca189c6fd6d142ad;hb=6b9338845dfee441cd18ad6c633e4feef8ad14e1;hpb=87b74b1263710b0acb9e0b72283e972fd54ee91b diff --git a/blender/io_mspgl/properties.py b/blender/io_mspgl/properties.py index 0648946e..9d46e128 100644 --- a/blender/io_mspgl/properties.py +++ b/blender/io_mspgl/properties.py @@ -87,9 +87,10 @@ class MspGLMaterialProperties(bpy.types.Panel): self.layout.prop(mat, "shader") 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") + self.layout.prop(mat, "image_based_lighting") + self.layout.prop(mat, "array_atlas") if mat.array_atlas: self.layout.prop(mat, "array_layer") if mat.render_mode!='EXTERNAL': @@ -226,6 +227,7 @@ def register_properties(): 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.image_based_lighting = bpy.props.BoolProperty(name="Image based lighting", description="Use an environment map for ambient lighting", default=False) 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")