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


local Object = {
  Identifier = "StarLabelsAlternate",
  Renderable = {
    Type = "RenderableBillboardsCloud",
    Enabled = false,
    Labels = {
      Enabled = true,
      File = speck .. "altstarlabels.label",
      Color = { 0.4, 0.4, 0.4 },
      Size = 14.7,
      MinMaxSize = { 6, 20 },
      Unit = "pc"
    },
    Color = { 1.0, 1.0, 1.0 },
    Opacity = 0.65,
    Unit = "pc"
  },
  GUI = {
    Name = "Stars Labels - Alternate",
    Path = "/Milky Way/Stars",
    Description = [[Census 3,395 star names. DU Version 1.8. <br>The main star data
      identify the accepted IAU star names for the brightest stars. However, astronomers
      have long cataloged thousands of stars beyond the brightest ones we see. Several
      attempts over thousands of years to name all the visible stars have led to two
      main catalogs: Johann Bayer's Catalog from 1603 and John Flamsteed's Catalog
      published in 1725. (Description from URL) <br><br> Data Reference: Various
      sources]]
  }
}


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

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

asset.export(Object)



asset.meta = {
  Name = "Stars Labels - Alternate",
  Version = "1.1",
  Description = "Digital Universe asset for alternate start labels",
  Author = "Brian Abbott (AMNH)",
  URL = "https://www.amnh.org/research/hayden-planetarium/digital-universe",
  License = "AMNH Digital Universe"
}
