| Package | away3d.core.light |
| Class | public class LightArray |
| Implements | ILightConsumer |
| Property | Defined by | ||
|---|---|---|---|
| ambients : Array [read-only]
The ambient light primitives stored in the consumer.
| LightArray | ||
| directionals : Array [read-only]
The directional light primitives stored in the consumer.
| LightArray | ||
| numLights : int [read-only]
The total number of light primitives stored in the consumer.
| LightArray | ||
| points : Array [read-only]
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 |
ambients:Array [read-only]The ambient light primitives stored in the consumer.
Implementation public function get ambients():Array
| directionals | property |
directionals:Array [read-only]The directional light primitives stored in the consumer.
Implementation public function get directionals():Array
| numLights | property |
numLights:int [read-only]The total number of light primitives stored in the consumer.
Implementation public function get numLights():int
| points | property |
points:Array [read-only]The point light primitives stored in the consumer.
Implementation public function get points():Array
| 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.
|