mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 19:29:04 -05:00
5de728442d
* Create volume generation task * Change domain bounds into a non-optional parameter * Work on volume generation and rendering * Example generation of time varying volume * Example generation of time varying volume * Compile fix in RenderableKameleonVolume * Fix copy and paste error * Enable spherical raycasting again * Uniform naming * Add some documentation and remove dead code
23 lines
646 B
Plaintext
23 lines
646 B
Plaintext
-- 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, 1}
|
|
},
|
|
GUI = {
|
|
Path = "/Examples"
|
|
}
|
|
}
|
|
|
|
local objects = { ToyVolume }
|
|
assetHelper.registerSceneGraphNodesAndExport(asset, objects)
|