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))
sampler_settings = None
for p in self.properties:
if p.texture:
- settings = (p.texture.default_filter, p.texture.interpolation, p.texture.use_mipmap, p.texture.max_anisotropy)
+ settings = (p.texture.interpolation, p.texture.use_mipmap, p.texture.max_anisotropy)
if sampler_settings is None:
sampler_settings = settings
elif settings!=sampler_settings: