Z.SpotLight
Inherits from Z.PointLight
Description
A light that emits light in a cone shape determined by the angle with the range setting how far the light travels. Spot lights are often used to represent their real-life counterparts as well as artificial light sources such as flashlights and car headlights.
Both position and rotation effect the light emitted from a spot light.
Provided by Z.SpotLight
Constructor
Z.SpotLight( ) | Constructs a new Z.SpotLight object. |
Functions
angle( ) | Gets the angle of the cone. |
angle(...) | Sets the angle of the cone. |
Inherited from Z.PointLight
Constructor
Z.PointLight( ) | Constructs a new Z.PointLight object. |
Functions
range( ) | Gets the distance at which the intensity of the light reaches 0. |
range(...) | Sets the distance at which the intensity of the light reaches 0. |
Inherited from Z.Light
Functions
intensity( ) | Gets the brightness of the light. |
intensity(...) | Sets the brightness of the light. |
lightColor( ) | Gets the color of the light. |
lightColor(...) | Sets the color of the light. |
priority( ) | Gets the priority of the light. |
priority(...) | Sets the priority of the light. |
Inherited from Z.Node
Functions
blend( ) | Gets the type of blending used to render this object. |
blend(...) | Sets the type of blending used to render this object |
color( ) | Gets the color of the node. |
color(...) | Sets the color of the node. |
cullFaces( ) | Gets the type of culling to performed on this object. |
cullFaces(...) | Sets the type of culling to performed on this object. |
enabled( ) | Gets the value of enabled for the node. |
enabled(...) | Sets the value of enabled for the node. |
position( ) | Gets the position of the node. |
position(...) | Sets the position of the node |
relativeTo( ) | Gets an array of nodes that this node's location is relative to. |
relativeTo(...) | Sets the node(s) that this node's location is relative to. |
relativeToProp( ) | Gets the ratio of contributions that the nodes specified by relativeTo have on this node's location. |
relativeToProp(...) | Sets the ratio of contributions that the nodes specified by relativeTo have on this node's location. |
rotation( ) | Gets the rotation of the node. |
rotation(...) | Sets the rotation of the node. |
scale( ) | Gets the scale of the node. |
scale(...) | Sets the scale of the node. |
visible( ) | Gets the visibility of the node. |
visible(...) | Sets the visibility of this node. |
Inherited from Z.Base
Functions
emit(...) | Calls the handler functions attached to an event. |
hasTag(...) | Returns true if this object has the specified tag. |
off(...) | Removes a handler function from an event. |
on(...) | Attaches a handler function to an event. |
one(...) | Attaches a single-use handler function to an event. |
pushTag(...) | Adds a tag to this object. |
removeTag(...) | Removes a tag from this object. |
tags( ) | Gets an array of the tags that this object belongs to. |
tags(...) | Sets the array of the tags that this object belongs to. |