mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-28 15:09:36 -06: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
27 lines
749 B
Plaintext
27 lines
749 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 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"
|
|
}
|
|
}
|
|
|
|
|
|
|
|
local objects = { RenderablePlaneImageOnline }
|
|
assetHelper.registerSceneGraphNodesAndExport(asset, objects)
|