raise Exception("Conflicting render modes in MaterialAtlas constructor")
if self.render_mode=='CUSTOM' and m.shader!=self.shader:
raise Exception("Conflicting shaders in MaterialAtlas constructor")
raise Exception("Conflicting render modes in MaterialAtlas constructor")
if self.render_mode=='CUSTOM' and m.shader!=self.shader:
raise Exception("Conflicting shaders in MaterialAtlas constructor")