self.shader = material.shader
self.receive_shadows = material.receive_shadows
self.cast_shadows = (material.shadow_method!='NONE')
+ self.image_based_lighting = material.image_based_lighting
if self.render_mode=='EXTERNAL' and not self.technique:
raise Exception("Invalid configuration on material {}: No technique for external rendering".format(self.name))