self.properties = (self.base_color, self.metalness, self.roughness, self.normal, self.emission)
+ 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)
+ if sampler_settings is None:
+ sampler_settings = settings
+ elif settings!=sampler_settings:
+ raise Exception("Conflicting sampler settings in material textures")
+
class MaterialMap:
def __init__(self, materials):