Packageaway3d.core.light
Classpublic class LightArray
ImplementsILightConsumer

Array for storing light primitives.

Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
ambientLight(ambient:AmbientLight):void
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
  
pointLight(point:PointLight):void
Adds an point light primitive to the light consumer.
LightArray
Property detail
ambientsproperty
ambients:Array  [read-only]

The ambient light primitives stored in the consumer.

Implementation
    public function get ambients():Array
directionalsproperty 
directionals:Array  [read-only]

The directional light primitives stored in the consumer.

Implementation
    public function get directionals():Array
numLightsproperty 
numLights:int  [read-only]

The total number of light primitives stored in the consumer.

Implementation
    public function get numLights():int
pointsproperty 
points:Array  [read-only]

The point light primitives stored in the consumer.

Implementation
    public function get points():Array
Method detail
ambientLight()method
public function ambientLight(ambient:AmbientLight):void

Adds an ambient light primitive to the light consumer.

Parameters
ambient: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.

Parameters
directional:DirectionalLight — The light primitive to add.
pointLight()method 
public function pointLight(point:PointLight):void

Adds an point light primitive to the light consumer.

Parameters
point:PointLight — The light primitive to add.
Wiki link
Click to go to the wiki page for 'away3d.core.light.LightArray'

Code examples

Comments