mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-31 00:18:39 -06:00
* Remove duplicated node line example * Update `ScreenSpaceBrowser` example to new format * Add screenspace image examples * Add docs and examples for `RenderableGrid` * Add docs and examples for `RenderableRadialGrid` + create 10 grid segments per default * Add docs and examples for `RenderableSphericalGrid` * Remove the old, combined, grid example * Apply suggestions from code review Co-authored-by: Alexander Bock <alexander.bock@liu.se> --------- Co-authored-by: Alexander Bock <alexander.bock@liu.se>
24 lines
489 B
Lua
24 lines
489 B
Lua
-- Basic
|
|
-- This example adds a planar grid of 100x100 meters to the scene. Per default, the grid
|
|
-- consist of 10x10 segments.
|
|
|
|
local Node = {
|
|
Identifier = "RenderableGrid_Example",
|
|
Renderable = {
|
|
Type = "RenderableGrid",
|
|
Size = { 100.0, 100.0 }
|
|
},
|
|
GUI = {
|
|
Name = "RenderableGrid - Basic",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|