Files
OpenSpace/data/assets/examples/renderable/renderablegrid/grid_styled.asset
Emma Broman 7f4bf73993 Cleanup and add some more examples (#3506)
* 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>
2025-02-11 09:37:57 +01:00

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)