Files
OpenSpace/data/assets/examples/renderable/renderablepointcloud/pointcloud.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

27 lines
625 B
Lua

-- Basic (Fixed Color and Size)
-- This example creates a point cloud with a fixed color and default size.
-- All the points will have the same size.
local Node = {
Identifier = "RenderablePointCloud_Example",
Renderable = {
Type = "RenderablePointCloud",
File = asset.resource("data/dummydata.csv"),
Coloring = {
FixedColor = { 0.0, 0.5, 0.0 }
}
},
GUI = {
Name = "RenderablePointCloud - Fixed Color and Size",
Path = "/Examples"
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(Node)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(Node)
end)