mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 11:09:37 -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>
27 lines
624 B
Lua
27 lines
624 B
Lua
-- Higlighting Grid Lines
|
|
-- This example adds a planar grid of 100x100 meters, with highlight color for every 5th
|
|
-- grid line in each direction.
|
|
|
|
local Node = {
|
|
Identifier = "RenderableGrid_Example_Highlights",
|
|
Renderable = {
|
|
Type = "RenderableGrid",
|
|
Size = { 100.0, 100.0 },
|
|
HighlightColor = { 0.0, 1.0, 0.0 },
|
|
HighlightRate = { 5, 5 },
|
|
HighlightLineWidth = 2.0
|
|
},
|
|
GUI = {
|
|
Name = "RenderableGrid - Highlights",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|