if tech_name not in resources:
material_map_export.export_technique_resources(material_map, resources)
resources[tech_name] = material_map_export.export_technique(material_map, resources=resources)
elif l.material_slots and l.material_slots[0].material:
material = l.material_slots[0].material
if tech_name not in resources:
material_map_export.export_technique_resources(material_map, resources)
resources[tech_name] = material_map_export.export_technique(material_map, resources=resources)
elif l.material_slots and l.material_slots[0].material:
material = l.material_slots[0].material