Files
OpenSpace/data/assets/examples/renderable/renderableboxgrid/boxgrid_styled.asset
Emma Broman 0dbc331ebf Docs and examples for RenderableBoxGrid (#3479)
* Add boxgrid examples

* Add description about the box grid renderable for the docs page

* change phrasing in example assets slightly

* Apply suggestions from code review

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>

* Remove labels support for `RenderableBoxGrid`

---------

Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
2025-01-17 13:50:40 +01:00

25 lines
522 B
Lua

-- Styled
-- This example creates a box grid where the grid lines are styled to have a specific
-- color and line width.
local Node = {
Identifier = "RenderableBoxGrid_Example_Styled",
Renderable = {
Type = "RenderableBoxGrid",
LineWidth = 4.0,
Color = { 1.0, 1.0, 0.0 }
},
GUI = {
Name = "RenderableBoxGrid - Styled",
Path = "/Examples"
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(Node)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(Node)
end)