mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
* Update name and path format of examples that follow the new structure * Fix a broken (updated) property name in an example * Make other examples' GUI paths more consistent * Put them all in the Examples folder
25 lines
615 B
Lua
25 lines
615 B
Lua
-- Basic
|
|
-- This example shows how to create a textured plane in 3D space, where the texture is
|
|
-- loaded from the internet though a web URL.
|
|
|
|
local Node = {
|
|
Identifier = "RenderablePlaneImageOnline_Example",
|
|
Renderable = {
|
|
Type = "RenderablePlaneImageOnline",
|
|
Size = 3.0E11,
|
|
URL = "http://data.openspaceproject.com/examples/renderableplaneimageonline.jpg"
|
|
},
|
|
GUI = {
|
|
Name = "RenderablePlaneImageOnline - Basic",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|