local sun = asset.require("scene/solarsystem/sun/sun")
local transforms = asset.require("./transforms")



local Planet = {
  Identifier = "GonggongGlobe",
  Parent = transforms.Position.Identifier,
  Transform = {
    Rotation = {
      Type = "ConstantRotation",
      RotationAxis = {0.0, 0.0, 1.0},
      RotationRate = 1.0 / (22.4 * 60.0 * 60.0)
    }
  },
  Renderable = {
    Type = "RenderableGlobe",
    Radii = { 615.0E3, 615.0E3, 615.0E3 },
    SegmentsPerPatch = 64,
    Layers = {}
  },
  GUI = {
    Name = "Gonggong",
    Path = "/Solar System/Dwarf Planets/Gonggong",
    Description = "Globe of Gonggong"
  }
}


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

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

asset.export("Planet", Planet)



asset.meta = {
  Name = "Gonggong Globe",
  Version = "1.0",
  Description = [[Globe of Gonggong]],
  Author = "OpenSpace Team",
  URL = "https://www.openspaceproject.com",
  License = "MIT"
}
