mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-06 19:49:36 -06:00
32 lines
588 B
Lua
32 lines
588 B
Lua
-- This asset requires OpenSpace to be built with the OPENSPACE_MODULE_SPOUT enabled
|
|
|
|
local transforms = asset.require("scene/solarsystem/sun/transforms")
|
|
|
|
|
|
|
|
local Spout = {
|
|
Identifier = "Spouty",
|
|
Parent = transforms.SolarSystemBarycenter.Identifier,
|
|
Renderable = {
|
|
Type = "RenderablePlaneSpout",
|
|
Size = 3.0E11,
|
|
Origin = "Center",
|
|
Billboard = true
|
|
},
|
|
GUI = {
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Spout)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Spout)
|
|
end)
|
|
|
|
asset.export(Spout)
|