Drag[en]gine Script Module DragonScript
1.23
|
Public Member Functions | |
Constructors | |
Light | new () |
Create light. More... | |
Management | |
LightType | getType () |
Type. More... | |
void | setType (LightType type) |
Set type. More... | |
DVector | getPosition () |
Position. More... | |
void | setPosition (DVector position) |
position. More... | |
Quaternion | getOrientation () |
Orientation. More... | |
void | setOrientation (Quaternion orientation) |
Set orientation. More... | |
bool | getActivated () |
Light is actived. More... | |
void | setActivated (bool activated) |
Set if light is activated. More... | |
Color | getColor () |
Light color. More... | |
void | setColor (Color color) |
Set light color. More... | |
float | getIntensity () |
Light intensity. More... | |
void | setIntensity (float intensity) |
Set light intensity. More... | |
float | getRange () |
Range in meters. More... | |
void | setRange (float range) |
Set range in meters. More... | |
float | getHalfIntensityDistance () |
Half intensity distance in meters. More... | |
void | setHalfIntensityDistance (float halfIntDist) |
Set half intensity distance in meters. More... | |
float | getAmbientRatio () |
Ratio of ambient light in relation to the total intensity. More... | |
void | setAmbientRatio (float ratio) |
Set ratio of ambient light in relation to the total intensity. More... | |
ShapeList | getShape () |
Light shape. More... | |
void | setShape (ShapeList shape) |
Set light shape. More... | |
LayerMask | getLayerMask () |
Layer mask affecting lighting. More... | |
void | setLayerMask (LayerMask layerMask) |
Set layer mask affecting lighting. More... | |
Spot and projector | |
float | getSpotAngle () |
Outer spot Angle. More... | |
void | setSpotAngle (float angle) |
Set outer spot angle. More... | |
float | getSpotRatio () |
Spot ratio as height divided by width. More... | |
void | setSpotRatio (float ratio) |
Set spot ratio as height divided by width. More... | |
float | getSpotSmoothness () |
Spot smoothness. More... | |
void | setSpotSmoothness (float smoothness) |
Set spot smoothness. More... | |
float | getSpotExponent () |
Spot exponent. More... | |
void | setSpotExponent (float exponent) |
Set spot exponent. More... | |
Light source | |
Skin | getLightSkin () |
Light skin or NULL if not used. More... | |
void | setLightSkin (Skin skin) |
Set light skin or NULL if not used. More... | |
CanvasView | getLightCanvas () |
Light canvas view or NULL if not used. More... | |
void | setLightCanvas (CanvasView canvas) |
Set light canvas view or NULL if not used. More... | |
DynamicSkin | getDynamicSkin () |
Light dynamic skin or NULL if not used. More... | |
void | setDynamicSkin (DynamicSkin dynamicSkin) |
Set light dynamic skin or NULL if not used. More... | |
TexMatrix2 | getTransform () |
Light texture coordinate transformation matrix. More... | |
void | setTransform (TexMatrix2 matrix) |
Set light texture coordinate transformation matrix. More... | |
Shadow casting | |
bool | getCastShadows () |
Light is casting shadows. More... | |
void | setCastShadows (bool castShadows) |
Set if light is casting shadows. More... | |
LayerMask | getLayerMaskShadow () |
Layer mask affecting shadow casting. More... | |
void | setLayerMaskShadow (LayerMask layerMask) |
Set layer mask affecting shadow casting. More... | |
int | getShadowIgnoreComponentCount () |
Number of components to ignore for shadow casting. More... | |
Component | getShadowIgnoreComponentAt (int index) |
Component to ignore for shadow casting at index. More... | |
bool | hasShadowIgnoreComponent (Component component) |
Component to ignore for shadow casting is present. More... | |
void | addShadowIgnoreComponent (Component component) |
Add component to ignore for shadow casting. More... | |
void | removeShadowIgnoreComponent (Component component) |
Remove component to ignore for shadow casting. More... | |
void | removeAllShadowIgnoreComponents () |
Remove all components to ignore for shadow casting. More... | |
Hint | |
int | getHintLightImportance () |
Light importannce in the range from 0 (least important) to 100 (most important). More... | |
void | setHintLightImportance (int type) |
Sets light importannce in the range from 0 (least important) to 100 (most important). More... | |
int | getHintShadowImportance () |
Shadow important in the range from 0 (least important) to 100 (most important). More... | |
void | setHintShadowImportance (int type) |
Set shadow important in the range from 0 (least important) to 100 (most important). More... | |
LightHintMovement | getHintMovement () |
Movement hint. More... | |
void | setHintMovement (LightHintMovement hint) |
Set movement hint. More... | |
LightHintParameter | getHintParameters () |
Parameter change hint. More... | |
void | setHintParameter (LightHintParameter hint) |
Set parameter change hint. More... | |
ShapeList | getCage () |
Light cage. More... | |
void | setCage (ShapeList cage) |
Set light cage. More... | |
This is a native class.
void Dragengine.Scenery.Light.addShadowIgnoreComponent | ( | Component | component | ) |
Add component to ignore for shadow casting.
EInvalidParam | component is present. |
bool Dragengine.Scenery.Light.getActivated | ( | ) |
Light is actived.
float Dragengine.Scenery.Light.getAmbientRatio | ( | ) |
Ratio of ambient light in relation to the total intensity.
bool Dragengine.Scenery.Light.getCastShadows | ( | ) |
Light is casting shadows.
DynamicSkin Dragengine.Scenery.Light.getDynamicSkin | ( | ) |
Light dynamic skin or NULL if not used.
float Dragengine.Scenery.Light.getHalfIntensityDistance | ( | ) |
Half intensity distance in meters.
int Dragengine.Scenery.Light.getHintLightImportance | ( | ) |
Light importannce in the range from 0 (least important) to 100 (most important).
LightHintMovement Dragengine.Scenery.Light.getHintMovement | ( | ) |
Movement hint.
LightHintParameter Dragengine.Scenery.Light.getHintParameters | ( | ) |
Parameter change hint.
int Dragengine.Scenery.Light.getHintShadowImportance | ( | ) |
Shadow important in the range from 0 (least important) to 100 (most important).
float Dragengine.Scenery.Light.getIntensity | ( | ) |
Light intensity.
LayerMask Dragengine.Scenery.Light.getLayerMask | ( | ) |
Layer mask affecting lighting.
LayerMask Dragengine.Scenery.Light.getLayerMaskShadow | ( | ) |
Layer mask affecting shadow casting.
CanvasView Dragengine.Scenery.Light.getLightCanvas | ( | ) |
Light canvas view or NULL if not used.
Quaternion Dragengine.Scenery.Light.getOrientation | ( | ) |
Orientation.
DVector Dragengine.Scenery.Light.getPosition | ( | ) |
Position.
float Dragengine.Scenery.Light.getRange | ( | ) |
Range in meters.
Component Dragengine.Scenery.Light.getShadowIgnoreComponentAt | ( | int | index | ) |
Component to ignore for shadow casting at index.
EInvalidParam | index is less than 0. |
EInvalidParam | index is greater or equal than getIgnoreComponentCount()-1. |
int Dragengine.Scenery.Light.getShadowIgnoreComponentCount | ( | ) |
Number of components to ignore for shadow casting.
float Dragengine.Scenery.Light.getSpotAngle | ( | ) |
Outer spot Angle.
float Dragengine.Scenery.Light.getSpotExponent | ( | ) |
Spot exponent.
float Dragengine.Scenery.Light.getSpotRatio | ( | ) |
Spot ratio as height divided by width.
float Dragengine.Scenery.Light.getSpotSmoothness | ( | ) |
Spot smoothness.
TexMatrix2 Dragengine.Scenery.Light.getTransform | ( | ) |
Light texture coordinate transformation matrix.
LightType Dragengine.Scenery.Light.getType | ( | ) |
Type.
bool Dragengine.Scenery.Light.hasShadowIgnoreComponent | ( | Component | component | ) |
Component to ignore for shadow casting is present.
Light Dragengine.Scenery.Light.new | ( | ) |
Create light.
void Dragengine.Scenery.Light.removeAllShadowIgnoreComponents | ( | ) |
Remove all components to ignore for shadow casting.
void Dragengine.Scenery.Light.removeShadowIgnoreComponent | ( | Component | component | ) |
Remove component to ignore for shadow casting.
EInvalidParam | component is absent. |
void Dragengine.Scenery.Light.setActivated | ( | bool | activated | ) |
Set if light is activated.
void Dragengine.Scenery.Light.setAmbientRatio | ( | float | ratio | ) |
Set ratio of ambient light in relation to the total intensity.
void Dragengine.Scenery.Light.setCage | ( | ShapeList | cage | ) |
Set light cage.
void Dragengine.Scenery.Light.setCastShadows | ( | bool | castShadows | ) |
Set if light is casting shadows.
void Dragengine.Scenery.Light.setColor | ( | Color | color | ) |
Set light color.
void Dragengine.Scenery.Light.setDynamicSkin | ( | DynamicSkin | dynamicSkin | ) |
Set light dynamic skin or NULL if not used.
void Dragengine.Scenery.Light.setHalfIntensityDistance | ( | float | halfIntDist | ) |
Set half intensity distance in meters.
void Dragengine.Scenery.Light.setHintLightImportance | ( | int | type | ) |
Sets light importannce in the range from 0 (least important) to 100 (most important).
void Dragengine.Scenery.Light.setHintMovement | ( | LightHintMovement | hint | ) |
Set movement hint.
void Dragengine.Scenery.Light.setHintParameter | ( | LightHintParameter | hint | ) |
Set parameter change hint.
void Dragengine.Scenery.Light.setHintShadowImportance | ( | int | type | ) |
Set shadow important in the range from 0 (least important) to 100 (most important).
void Dragengine.Scenery.Light.setIntensity | ( | float | intensity | ) |
Set light intensity.
void Dragengine.Scenery.Light.setLayerMask | ( | LayerMask | layerMask | ) |
Set layer mask affecting lighting.
void Dragengine.Scenery.Light.setLayerMaskShadow | ( | LayerMask | layerMask | ) |
Set layer mask affecting shadow casting.
void Dragengine.Scenery.Light.setLightCanvas | ( | CanvasView | canvas | ) |
Set light canvas view or NULL if not used.
void Dragengine.Scenery.Light.setLightSkin | ( | Skin | skin | ) |
Set light skin or NULL if not used.
void Dragengine.Scenery.Light.setOrientation | ( | Quaternion | orientation | ) |
Set orientation.
void Dragengine.Scenery.Light.setPosition | ( | DVector | position | ) |
position.
void Dragengine.Scenery.Light.setRange | ( | float | range | ) |
Set range in meters.
void Dragengine.Scenery.Light.setShape | ( | ShapeList | shape | ) |
Set light shape.
void Dragengine.Scenery.Light.setSpotAngle | ( | float | angle | ) |
Set outer spot angle.
void Dragengine.Scenery.Light.setSpotExponent | ( | float | exponent | ) |
Set spot exponent.
void Dragengine.Scenery.Light.setSpotRatio | ( | float | ratio | ) |
Set spot ratio as height divided by width.
void Dragengine.Scenery.Light.setSpotSmoothness | ( | float | smoothness | ) |
Set spot smoothness.
void Dragengine.Scenery.Light.setTransform | ( | TexMatrix2 | matrix | ) |
Set light texture coordinate transformation matrix.
void Dragengine.Scenery.Light.setType | ( | LightType | type | ) |
Set type.