Files
OpenSpace/data/assets/examples/renderable/renderablepointcloud/pointcloud_outline.asset
Emma Broman 8a42657deb Feature/examples naming (#3305)
* 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
2024-06-13 10:42:00 +02:00

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)