local speck = asset.syncedResource({
  Name = "Star Labels Speck Files",
  Type = "HttpSynchronization",
  Identifier = "digitaluniverse_starlabels_speck",
  Version = 2
})


local Object = {
  Identifier = "StarsLabels",
  Renderable = {
    Type = "RenderableBillboardsCloud",
    Enabled = false,
    Labels = {
      Enabled = true,
      File = speck .. "stars.label",
      Color = { 0.4, 0.4, 0.4 },
      Size = 14.7,
      MinMaxSize = { 6, 50 },
      Unit = "pc"
    },
    Color = { 1.0, 1.0, 1.0 },
    Opacity = 0.65,
    Unit = "pc"
  },
  GUI = {
    Name = "Stars Labels",
    Path = "/Milky Way/Stars",
    Description = "Labels for stars in the Milky Way. See 'Stars' for more info"
  }
}


asset.onInitialize(function()
  openspace.addSceneGraphNode(Object)
end)

asset.onDeinitialize(function()
  openspace.removeSceneGraphNode(Object)
end)

asset.export(Object)



asset.meta = {
  Name = "Star Labels",
  Version = "2.1",
  Description = "Digital Universe asset for labels of the stars",
  Author = "Brian Abbott (AMNH)",
  URL = "https://www.amnh.org/research/hayden-planetarium/digital-universe",
  License = "AMNH Digital Universe"
}
