mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 02:29:49 -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>
25 lines
591 B
Lua
25 lines
591 B
Lua
-- Specifying Segments
|
|
-- This example adds a planar grid of 50x100 meters, split into 5 segments in the
|
|
-- x-direction and 10 segments in the y-direction so that each segment is 10x10 meters.
|
|
|
|
local Node = {
|
|
Identifier = "RenderableGrid_Example_Segments",
|
|
Renderable = {
|
|
Type = "RenderableGrid",
|
|
Size = { 50.0, 100.0 },
|
|
Segments = { 5, 10 }
|
|
},
|
|
GUI = {
|
|
Name = "RenderableGrid - Segments",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|