Packageaway3d.core.light
Interfacepublic interface ILightConsumer
ImplementorsLightArray

Interface for containers capable of storing lighting info

Public Properties
 PropertyDefined by
  ambients : Array
[read-only]
ILightConsumer
  directionals : Array
[read-only]
ILightConsumer
  numLights : int
[read-only]
ILightConsumer
  points : Array
[read-only]
ILightConsumer
Public Methods
 MethodDefined by
  
ambientLight(ambient:AmbientLight):void
Adds an ambient light primitive to the light consumer.
ILightConsumer
  
clear():void
ILightConsumer
  
Adds an directional light primitive to the light consumer.
ILightConsumer
  
pointLight(point:PointLight):void
Adds an point light primitive to the light consumer.
ILightConsumer
Property detail
ambientsproperty
ambients:Array  [read-only]Implementation
    public function get ambients():Array
directionalsproperty 
directionals:Array  [read-only]Implementation
    public function get directionals():Array
numLightsproperty 
numLights:int  [read-only]Implementation
    public function get numLights():int
pointsproperty 
points:Array  [read-only]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
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 ####WIKI####

Code examples

Comments