Package | away3d.core.light |
Class | public class LightArray |
Implements | ILightConsumer |
Property | Defined by | ||
---|---|---|---|
ambients : Array
The ambient light primitives stored in the consumer.
| LightArray | ||
directionals : Array
The directional light primitives stored in the consumer.
| LightArray | ||
numLights : int
The total number of light primitives stored in the consumer.
| LightArray | ||
points : Array
The point light primitives stored in the consumer.
| LightArray |
Method | Defined by | ||
---|---|---|---|
Adds an ambient light primitive to the light consumer.
| LightArray | ||
clear():void
Clears all light primitives from the consumer.
| LightArray | ||
Adds an directional light primitive to the light consumer.
| LightArray | ||
Adds an point light primitive to the light consumer.
| LightArray |
ambients | property |
public var ambients:Array
The ambient light primitives stored in the consumer.
directionals | property |
public var directionals:Array
The directional light primitives stored in the consumer.
numLights | property |
public var numLights:int
The total number of light primitives stored in the consumer.
points | property |
public var points:Array
The point light primitives stored in the consumer.
ambientLight | () | method |
public function ambientLight(ambient:AmbientLight):void
Adds an ambient light primitive to the light consumer.
Parametersambient:AmbientLight — The light primitive to add.
|
clear | () | method |
public function clear():void
Clears all light primitives from the consumer.
directionalLight | () | method |
public function directionalLight(directional:DirectionalLight):void
Adds an directional light primitive to the light consumer.
Parametersdirectional:DirectionalLight — The light primitive to add.
|
pointLight | () | method |
public function pointLight(point:PointLight):void
Adds an point light primitive to the light consumer.
Parameterspoint:PointLight — The light primitive to add.
|