RenderableEclipseCone
Inherits Renderable
Members
Name |
Documentation |
Type |
Description |
Optional |
|---|---|---|---|---|
|
The SPICE name of the object that is used as the illuminator when computing the shadow cylinder. |
|
Value of type ‘String’ |
No |
|
The SPICE name of the body-fixed reference frame for the light source. |
|
Value of type ‘String’ |
No |
|
The SPICE name of object that is receiving the shadow from the shadower. |
|
Value of type ‘String’ |
No |
|
The SPICE name of the object that is casting the shadow on the shadowee. |
|
Value of type ‘String’ |
No |
|
The SPICE name of the body-fixed reference frame for the shadower. |
|
Value of type ‘String’ |
No |
|
The number of control points used for constructing the shadow geometry. The higher this number, the more detailed the shadow is. However, it will have a negative impact on the performance. Also note that rendering errors will occur if this value is an even number. |
|
Value of type ‘Integer’ |
Yes |
|
The color for the shadow cylinder that represents the penumbral shadow. |
|
Value of type ‘Color4’ |
Yes |
|
A factor that controls the length of the rendered shadow cone. The total length will be the distance from the shadower to the shadowee multiplied by this value. |
|
Value of type ‘Double’ |
Yes |
|
Decides whether the penumbral portion of the shadow should be shown. |
|
Value of type ‘Boolean’ |
Yes |
|
Decides whether the umbral portion of the shadow should be shown. |
|
Value of type ‘Boolean’ |
Yes |
|
The color for the shadow cylinder that represents the umbral shadow. |
|
Value of type ‘Color4’ |
Yes |
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, Overlay, PostDeferredTransparent, Sticker } |
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/planets/earth/moon/moon")
2local coreKernels = asset.require("spice/core")
3
4
5
6local EarthMoonShadow = {
7 Identifier = "EarthMoonShadow",
8 Parent = transforms.Moon.Identifier,
9 Renderable = {
10 Type = "RenderableEclipseCone",
11 Opacity = 1.0,
12 ShadowLength = 1.0,
13 UmbralShadowColor = { 0.85, 1.0, 1.0, 0.20 },
14 PenumbralShadowColor = { 0.35, 0.35, 0.35, 0.29 },
15 LightSource = coreKernels.ID.Sun,
16 LightSourceFrame = coreKernels.Frame.Sun,
17 Shadower = coreKernels.ID.Moon,
18 ShadowerFrame = coreKernels.Frame.Moon,
19 Shadowee = coreKernels.ID.Earth
20 },
21 GUI = {
22 Name = "Earth/Moon Shadow",
23 Path = "/Solar System/Planets/Earth",
24 Focusable = false
25 }
26}
27
28
29asset.onInitialize(function()
30 openspace.addSceneGraphNode(EarthMoonShadow)
31end)
32
33asset.onDeinitialize(function()
34 openspace.removeSceneGraphNode(EarthMoonShadow)
35end)
36
37asset.export(EarthMoonShadow)
38
39
40
41asset.meta = {
42 Name = "Eclipse Shadow",
43 Description = "The penumbral and umbral shadow eclipses for the Earth-Moon system",
44 Author = "OpenSpace Team",
45 URL = "http://openspaceproject.com",
46 License = "MIT license"
47}