def retrieve_material(self, name=DEFAULT_MATERIAL_NAME, default=True):
        """Return a reference to a material."""
        if name in self.asset['materials']:
            return Material(self.asset['materials'][name])

        if default:
            default_material = { 'effect': 'default',
                                 'parameters': { 'diffuse': 'default' },
                                 'meta': { 'tangents': True } }
            LOG.warning("Material not found:%s", name)
            return Material(default_material)

        return None
dataset/ETHPy150Open turbulenz/turbulenz_tools/turbulenz_tools/tools/asset2json.py/JsonAsset.retrieve_material/original