Files
OpenSpace/data/assets/examples/renderable/renderableplaneimageonline/planeimageonline.asset
Emma Broman 8a42657deb Feature/examples naming (#3305)
* 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
2024-06-13 10:42:00 +02:00

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)