mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-22 04:49:12 -06:00
30 lines
691 B
Lua
30 lines
691 B
Lua
-- This asset requires OpenSpace to be built with the OPENSPACE_MODULE_SPOUT enabled
|
|
|
|
local transforms = asset.require("scene/solarsystem/sun/transforms")
|
|
|
|
local circle = {
|
|
Identifier = "hoverCircle",
|
|
Parent = transforms.SolarSystemBarycenter.Identifier,
|
|
Renderable = {
|
|
Type = "RenderablePlaneImageLocal",
|
|
Size = 3.0E15,
|
|
Origin = "Center",
|
|
Billboard = true,
|
|
Texture = "${ASSETS}/circle.png"
|
|
},
|
|
GUI = {
|
|
Path = "/SkyBrowser"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(circle)
|
|
openspace.skybrowser.setHoverCircle('hoverCircle')
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(circle)
|
|
end)
|
|
|
|
asset.export(circle)
|