RenderableToyVolume
Inherits Renderable
Members
Inherited members from Renderable
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines whether this object will be visible or not. |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines the opacity of this renderable. A value of 0 means completely transparent |
|
In range: ( 0,1 ) |
Yes |
|
A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker rendering step. |
|
In list { Background, Opaque, PreDeferredTransparent, PostDeferredTransparent, Overlay } |
Yes |
|
A single tag or a list of tags that this renderable will respond to when setting properties |
|
Value of type ‘Table’, or Value of type ‘String’ |
Yes |
|
The type of the renderable. |
|
Value of type ‘String’ |
Yes |
Asset Examples
1local transforms = asset.require("scene/solarsystem/sun/transforms")
2
3
4
5local ToyVolume = {
6 Identifier = "RenderableToyVolume",
7 Parent = transforms.SolarSystemBarycenter.Identifier,
8 Renderable = {
9 Type = "RenderableToyVolume",
10 Size = { 5, 5, 5 },
11 ScalingExponent = 11,
12 StepSize = 0.01,
13 Color = { 1.0, 0.0, 0.0 }
14 },
15 GUI = {
16 Path = "/Examples"
17 }
18}
19
20
21asset.onInitialize(function()
22 openspace.addSceneGraphNode(ToyVolume)
23end)
24
25asset.onDeinitialize(function()
26 openspace.removeSceneGraphNode(ToyVolume)
27end)
28
29asset.export(ToyVolume)