mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 10:40:09 -06:00
* 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>
25 lines
522 B
Lua
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)
|