public MaterialRepository(string materialsDirectory, Material defaultLandmarkMaterial, TextureLoadHandler textureLoadHandler) { m_materialDirectory = materialsDirectory; m_materials = new Dictionary <string, MaterialRecord>(); m_defaultMaterial = defaultLandmarkMaterial == null?LoadPlaceHolderMaterial("placeholder") : defaultLandmarkMaterial; m_defaultRasterTerrainMaterial = LoadOrCreateMaterial("placeholder", "placeholder_rasterTerrain"); m_textureLoadHandler = textureLoadHandler; }
public TextureLoadHandler() { ms_instance = this; }