mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-23 14:00:26 -05:00
* Introduced guiName to PropertyOwner * Added requirement that PropertyOwner::identifier may not contain whitespaces * Changed Name to Identifier in asset and scene files * Added new PropertyOwner to RenderEngine that owns the ScreenSpaceRenderables * Moved Name and GuiPath into GUI group * Added user-facing names to layer groups
26 lines
591 B
Plaintext
26 lines
591 B
Plaintext
-- This asset requires OpenSpace to be built with the OPENSPACE_MODULE_SPOUT enabled
|
|
|
|
local assetHelper = asset.require("util/asset_helper")
|
|
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"
|
|
}
|
|
}
|
|
|
|
|
|
|
|
local objects = { Spout }
|
|
assetHelper.registerSceneGraphNodesAndExport(asset, objects)
|