- self.layout.prop(mat, "shader")
- if mat.shadow_method!='NONE':
- self.layout.prop(mat, "shadow_shader")
+ self.layout.label(text="Render methods")
+ self.layout.template_list("MATERIAL_UL_mspgl_render_methods", "", mat, "render_methods", mat, "active_render_method_index")
+ row = self.layout.row()
+ row.operator("material.add_render_method")
+ row.operator("material.remove_render_method")
+
+ if mat.active_render_method_index<len(mat.render_methods):
+ method = mat.render_methods[mat.active_render_method_index]
+ self.layout.prop(method, "tag")
+ self.layout.prop(method, "shader")
+ self.layout.prop(method, "use_material")
+
+ self.layout.separator()