Packageaway3d.lights
Classpublic class AbstractLight
ImplementsILightProvider
SubclassesAmbientLight3D, DirectionalLight3D, PointLight3D

Lightsource that colors all shaded materials evenly from any angle

Public Properties
 PropertyDefined by
  color : uint
Defines the color of the light object.
AbstractLight
  debug : Boolean
Toggles debug mode: light object is visualised in the scene.
AbstractLight
  parent : ObjectContainer3D
Defines the parent of the light.
AbstractLight
Protected Properties
 PropertyDefined by
  ini : Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
AbstractLight
Public Methods
 MethodDefined by
  
AbstractLight
(init:Object = null)
Creates a new AmbientLight3D object.
AbstractLight
  
Duplicates the light object's properties to another AbstractLight object
AbstractLight
  
light(consumer:ILightConsumer):void
Called from the PrimitiveTraverser when passing LightPrimitive objects to the light consumer object
AbstractLight
Property detail
colorproperty
color:uint  [read-write]

Defines the color of the light object.

Implementation
    public function get color():uint
    public function set color(value:uint):void
debugproperty 
debug:Boolean  [read-write]

Toggles debug mode: light object is visualised in the scene.

Implementation
    public function get debug():Boolean
    public function set debug(value:Boolean):void
iniproperty 
protected var ini:Init

Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.

parentproperty 
parent:ObjectContainer3D  [read-write]

Defines the parent of the light.

Implementation
    public function get parent():ObjectContainer3D
    public function set parent(value:ObjectContainer3D):void
Constructor detail
AbstractLight()constructor
public function AbstractLight(init:Object = null)Parameters
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
Init Parameters
 color:Color (default = 0xFFFFFF)
 debug:Boolean (default = false)
Method detail
clone()method
public function clone(light:AbstractLight = null):AbstractLight

Duplicates the light object's properties to another AbstractLight object

Parameters
light:AbstractLight (default = null) — [optional] The new light instance into which all properties are copied

Returns
AbstractLight — The new light instance with duplicated properties applied
light()method 
public function light(consumer:ILightConsumer):void

Called from the PrimitiveTraverser when passing LightPrimitive objects to the light consumer object

Parameters
consumer:ILightConsumer
Wiki link
Click to go to the wiki page for 'away3d.lights.AbstractLight'

Code examples

Comments