mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 17:30:04 -05:00
4d5ce33903
* Add asset meta and GUI description to AltAz grid and move to Night sky in menu To avoid confusion with other grids, that have a global position rather than a local one * Add asset metas and GUI descriptions to Night Sky assets * Add metas and update name of some example assets * Night sky asset meta * Add descriptions and asset metas to scale objects --------- Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
42 lines
1.0 KiB
Lua
42 lines
1.0 KiB
Lua
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 = {
|
|
Description = "A plane that loads a texture from the internet.",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(RenderablePlaneImageOnline)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(RenderablePlaneImageOnline)
|
|
end)
|
|
|
|
asset.export(RenderablePlaneImageOnline)
|
|
|
|
|
|
asset.meta = {
|
|
Name = "RenderablePlaneImageOnline Example",
|
|
Version = "1.0",
|
|
Description = [[Example of how to create a textured plane in 3D space, where the
|
|
texture is loaded from a web URL]],
|
|
Author = "OpenSpace Team",
|
|
URL = "http://openspaceproject.com",
|
|
License = "MIT license"
|
|
}
|