mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
23 lines
611 B
Lua
23 lines
611 B
Lua
-- This asset requires OpenSpace to be built with the OPENSPACE_MODULE_TOYVOLUME enabled
|
|
|
|
local assetHelper = asset.require("util/asset_helper")
|
|
local transforms = asset.require("scene/solarsystem/sun/transforms")
|
|
|
|
local ToyVolume = {
|
|
Identifier = "RenderableToyVolume",
|
|
Parent = transforms.SolarSystemBarycenter.Identifier,
|
|
Renderable = {
|
|
Type = "RenderableToyVolume",
|
|
Size = { 5, 5, 5 },
|
|
ScalingExponent = 11,
|
|
StepSize = 0.01,
|
|
Color = { 1, 0, 0 }
|
|
},
|
|
GUI = {
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
local objects = { ToyVolume }
|
|
assetHelper.registerSceneGraphNodesAndExport(asset, objects)
|