mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 12:10:52 -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
27 lines
625 B
Lua
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)
|