local globeIdentifier = asset.require("../../rhea").Rhea.Identifier

local texturesPath = asset.syncedResource({
  Name = "Rhea textures",
  Type = "HttpSynchronization",
  Identifier = "rhea_textures",
  Version = 1
})

local layer = {
  Identifier = "Texture",
  FilePath = texturesPath .. "rhea.jpg",
  Enabled = asset.enabled
}

asset.onInitialize(function()
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", layer)
end)

asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", layer)
end)

asset.export("layer", layer)



asset.meta = {
  Name = "Rhea Texutre",
  Version = "1.0",
  Description = "Default jpg texture for Rhea",
  Author = "OpenSpace Team",
  URL = "http://openspaceproject.com",
  License = "MIT license"
}
