+
+ if material.sub_materials:
+ for k, s in material.array_storage.items():
+ mat_res.statements.append(Statement(k.replace("_map", "_storage"), Token(s[0]), s[1], s[2]))
+ for s in material.sub_materials:
+ st = Statement("sub")
+ for p in s.properties:
+ ss = self.create_property_statement(mat_res, p, resources, raw_texture=True)
+ if ss:
+ st.sub.append(ss)
+ mat_res.statements.append(st)
+
+ textures = [p.texture for p in itertools.chain(material.properties, *(s.properties for s in material.sub_materials)) if p.texture]