Files
OpenSpace/data/assets/examples/renderable/renderabletoyvolume/toyvolume.asset
T

26 lines
534 B
Lua

-- Basic
-- A simple example of a toy volume rendered using direct volume rendering.
local Node = {
Identifier = "RenderableToyVolume_Example",
Renderable = {
Type = "RenderableToyVolume",
Size = { 5, 5, 5 },
ScalingExponent = 11,
StepSize = 0.01,
Color = { 1.0, 0.0, 0.0 }
},
GUI = {
Name = "RenderableToyVolume - Basic",
Path = "/Examples"
}
}
asset.onInitialize(function()
openspace.addSceneGraphNode(Node)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(Node)
end)