self.blend_type = 'ALPHA' if material.blend_method=='BLEND' else 'NONE'
self.alpha_cutoff = material.alpha_threshold if material.blend_method=='CLIP' else 0.0
self.image_based_lighting = material.image_based_lighting
+ self.instancing = material.instancing
if self.render_mode=='EXTERNAL' and not self.technique:
raise Exception("Invalid configuration on material {}: No technique for external rendering".format(self.name))