mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-06 19:49:36 -06:00
* Update name and path format of examples that follow the new structure * Fix a broken (updated) property name in an example * Make other examples' GUI paths more consistent * Put them all in the Examples folder
31 lines
784 B
Lua
31 lines
784 B
Lua
-- Draw Point Outline
|
|
-- This example creates a point cloud where the points have a colored outline with a
|
|
-- given color and thickness (weight).
|
|
|
|
local Node = {
|
|
Identifier = "RenderablePointCloud_Example_Outline",
|
|
Renderable = {
|
|
Type = "RenderablePointCloud",
|
|
File = asset.resource("data/dummydata.csv"),
|
|
Coloring = {
|
|
EnableOutline = true,
|
|
OutlineColor = { 0.2, 0.2, 1.0 },
|
|
OutlineWidth = 0.1
|
|
},
|
|
-- It might be desired to disable additive blending when using an outline
|
|
UseAdditiveBlending = false
|
|
},
|
|
GUI = {
|
|
Name = "RenderablePointCloud - Outlined",
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
asset.onInitialize(function()
|
|
openspace.addSceneGraphNode(Node)
|
|
end)
|
|
|
|
asset.onDeinitialize(function()
|
|
openspace.removeSceneGraphNode(Node)
|
|
end)
|