mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-25 13:38:34 -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
521 B
Lua
25 lines
521 B
Lua
-- Styled
|
|
-- This example adds a planar grid of 100x100 meters, with a custom color and line width.
|
|
|
|
local Node = {
|
|
Identifier = "RenderableGrid_Example_Styled",
|
|
Renderable = {
|
|
Type = "RenderableGrid",
|
|
Size = { 100.0, 100.0 },
|
|
Color = { 0.0, 1.0, 0.0 },
|
|
LineWidth = 2.0
|
|
},
|
|
GUI = {
|
|
Name = "RenderableGrid - Styled",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|