-- This asset requires OpenSpace to be built with the OPENSPACE_MODULE_SPOUT enabled

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



local RenderablePlaneImageOnline = {
  Identifier = "RenderablePlaneImageOnline",
  Parent = transforms.SolarSystemBarycenter.Identifier,
  Renderable = {
    Type = "RenderablePlaneImageOnline",
    Size = 3.0E11,
    Origin = "Center",
    Billboard = true,
    URL = "http://data.openspaceproject.com/examples/renderableplaneimageonline.jpg"
  },
  GUI = {
    Path = "/Examples"
  }
}



asset.onInitialize(function()
  openspace.addSceneGraphNode(RenderablePlaneImageOnline)
end)
  
asset.onDeinitialize(function()
  openspace.removeSceneGraphNode(RenderablePlaneImageOnline)
end)
  
asset.export(RenderablePlaneImageOnline)
