Drag[en]gine Script Module DragonScript
1.23
|
Public Member Functions | |
Management | |
Sky | getSky () |
Owner sky. More... | |
int | getLayerIndex () |
Layer index. More... | |
Layers | |
Vector | getOffset () |
Relative offset of layer center. More... | |
void | setOffset (Vector offset) |
Set relative offset of layer center. More... | |
Vector | getOrientation () |
Orientation. More... | |
void | setOrientation (Vector orientation) |
Set orientation. More... | |
Color | getColor () |
Tint color. More... | |
void | setColor (Color color) |
Set tint color. More... | |
float | getIntensity () |
Intensity. More... | |
void | setIntensity (float intensity) |
Set intensity. More... | |
float | getTransparency () |
Transparency. More... | |
void | setTransparency (float transparency) |
Set transparency. More... | |
Skin | getSkin () |
Skin or null to use background color only. More... | |
void | setSkin (Skin skin) |
Set skin or null to use background color only. More... | |
Quaternion | getLightOrientation () |
Light orientation. More... | |
void | setLightOrientation (Quaternion orientation) |
Set light orientation. More... | |
Color | getLightColor () |
Light color. More... | |
void | setLightColor (Color color) |
Set light color. More... | |
float | getLightIntensity () |
Direct light intensity. More... | |
void | setLightIntensity (float intensity) |
Set direct light intensity. More... | |
float | getAmbientIntensity () |
Diffuse ambient light intensity. More... | |
void | setAmbientIntensity (float intensity) |
Set diffuse ambient light intensity. More... | |
int | getBodyCount () |
Number of bodies. More... | |
void | setBodyCount (int count) |
Set number of bodies. More... | |
SkyBody | getBodyAt (int index) |
Get wrapper for body. More... | |
SkyTarget | getTarget (SkyLayerTargetType target) |
Get wrapper for parameter. More... | |
bool | getMuliplyBySkyLight () |
Layer intensity is multiplied by total sky light intensity. More... | |
void | setMultiplyBySkyLight (bool multiply) |
Set if layer intensity is multiplied by total sky light intensity. More... | |
bool | getMuliplyBySkyColor () |
Layer color is multiplied by total sky light color. More... | |
void | setMultiplyBySkyColor (bool multiply) |
Set if layer color is multiplied by total sky light color. More... | |
Sky layer.
Wraps a sky layer by layer index. Valid only as long as the wrapped sky does not change layer layout. The user is responsible to call Sky.contentChanged() after changing one or more layers. Sky layers should not be changed if possible after being used in sky instances.
The TARGET_ROTATION_* rotation is applied ontop of the layer orientation. This allows to define planetary movement with the layer orientation representing the planet orbit coordinate frame and TARGET_ROTATION_X for example rotating the planet along the x axis easily.
float Dragengine.Scenery.SkyLayer.getAmbientIntensity | ( | ) |
Diffuse ambient light intensity.
SkyBody Dragengine.Scenery.SkyLayer.getBodyAt | ( | int | index | ) |
Get wrapper for body.
EOutOfBoundary | body is less than 0 or larger than or equal to getBodyCount(). |
int Dragengine.Scenery.SkyLayer.getBodyCount | ( | ) |
Number of bodies.
Color Dragengine.Scenery.SkyLayer.getColor | ( | ) |
Tint color.
float Dragengine.Scenery.SkyLayer.getIntensity | ( | ) |
Intensity.
int Dragengine.Scenery.SkyLayer.getLayerIndex | ( | ) |
Layer index.
float Dragengine.Scenery.SkyLayer.getLightIntensity | ( | ) |
Direct light intensity.
Quaternion Dragengine.Scenery.SkyLayer.getLightOrientation | ( | ) |
Light orientation.
bool Dragengine.Scenery.SkyLayer.getMuliplyBySkyColor | ( | ) |
Layer color is multiplied by total sky light color.
bool Dragengine.Scenery.SkyLayer.getMuliplyBySkyLight | ( | ) |
Layer intensity is multiplied by total sky light intensity.
Vector Dragengine.Scenery.SkyLayer.getOffset | ( | ) |
Relative offset of layer center.
Vector Dragengine.Scenery.SkyLayer.getOrientation | ( | ) |
Orientation.
Sky Dragengine.Scenery.SkyLayer.getSky | ( | ) |
Owner sky.
SkyTarget Dragengine.Scenery.SkyLayer.getTarget | ( | SkyLayerTargetType | target | ) |
Get wrapper for parameter.
float Dragengine.Scenery.SkyLayer.getTransparency | ( | ) |
Transparency.
void Dragengine.Scenery.SkyLayer.setAmbientIntensity | ( | float | intensity | ) |
Set diffuse ambient light intensity.
void Dragengine.Scenery.SkyLayer.setBodyCount | ( | int | count | ) |
Set number of bodies.
Sets all bodies to default vaules.
void Dragengine.Scenery.SkyLayer.setColor | ( | Color | color | ) |
Set tint color.
void Dragengine.Scenery.SkyLayer.setIntensity | ( | float | intensity | ) |
Set intensity.
void Dragengine.Scenery.SkyLayer.setLightColor | ( | Color | color | ) |
Set light color.
void Dragengine.Scenery.SkyLayer.setLightIntensity | ( | float | intensity | ) |
Set direct light intensity.
void Dragengine.Scenery.SkyLayer.setLightOrientation | ( | Quaternion | orientation | ) |
Set light orientation.
void Dragengine.Scenery.SkyLayer.setMultiplyBySkyColor | ( | bool | multiply | ) |
Set if layer color is multiplied by total sky light color.
void Dragengine.Scenery.SkyLayer.setMultiplyBySkyLight | ( | bool | multiply | ) |
Set if layer intensity is multiplied by total sky light intensity.
void Dragengine.Scenery.SkyLayer.setOffset | ( | Vector | offset | ) |
Set relative offset of layer center.
void Dragengine.Scenery.SkyLayer.setOrientation | ( | Vector | orientation | ) |
Set orientation.
void Dragengine.Scenery.SkyLayer.setSkin | ( | Skin | skin | ) |
Set skin or null to use background color only.
void Dragengine.Scenery.SkyLayer.setTransparency | ( | float | transparency | ) |
Set transparency.