Packageaway3d.lights
Classpublic class AbstractLight
InheritanceAbstractLight Inheritance Object
Subclasses AmbientLight3D, DirectionalLight3D, PointLight3D

Lightsource that colors all shaded materials evenly from any angle



Public Properties
 PropertyDefined By
  ambientBitmap : BitmapData
[read-only] Lightmap for ambient intensity.
AbstractLight
  ambientColorTransform : ColorTransform
[read-only] Color transform used in cached shading materials for combined ambient and diffuse color intensities.
AbstractLight
  ambientDiffuseBitmap : BitmapData
[read-only] Combined lightmap for ambient and diffuse intensities.
AbstractLight
  color : uint
Defines the color of the light object.
AbstractLight
  debug : Boolean
Toggles debug mode: light object is visualised in the scene.
AbstractLight
  diffuseBitmap : BitmapData
[read-only] Lightmap for diffuse intensity.
AbstractLight
  diffuseColorTransform : ColorTransform
[read-only] Color transform used in cached shading materials for ambient intensities.
AbstractLight
  parent : ObjectContainer3D
Defines the parent of the light.
AbstractLight
  specularBitmap : BitmapData
[read-only] Lightmap for specular intensity.
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
Property Detail
ambientBitmapproperty
ambientBitmap:BitmapData  [read-only]

Lightmap for ambient intensity.


Implementation
    public function get ambientBitmap():BitmapData
ambientColorTransformproperty 
ambientColorTransform:ColorTransform  [read-only]

Color transform used in cached shading materials for combined ambient and diffuse color intensities.


Implementation
    public function get ambientColorTransform():ColorTransform
ambientDiffuseBitmapproperty 
ambientDiffuseBitmap:BitmapData  [read-only]

Combined lightmap for ambient and diffuse intensities.


Implementation
    public function get ambientDiffuseBitmap():BitmapData
colorproperty 
color:uint

Defines the color of the light object.


Implementation
    public function get color():uint
    public function set color(value:uint):void
debugproperty 
debug:Boolean

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


Implementation
    public function get debug():Boolean
    public function set debug(value:Boolean):void
diffuseBitmapproperty 
diffuseBitmap:BitmapData  [read-only]

Lightmap for diffuse intensity.


Implementation
    public function get diffuseBitmap():BitmapData
diffuseColorTransformproperty 
diffuseColorTransform:ColorTransform  [read-only]

Color transform used in cached shading materials for ambient intensities.


Implementation
    public function get diffuseColorTransform():ColorTransform
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

Defines the parent of the light.


Implementation
    public function get parent():ObjectContainer3D
    public function set parent(value:ObjectContainer3D):void
specularBitmapproperty 
specularBitmap:BitmapData  [read-only]

Lightmap for specular intensity.


Implementation
    public function get specularBitmap():BitmapData
Constructor Detail
AbstractLight()Constructor
public function AbstractLight(init:Object = null)

Creates a new AmbientLight3D object.

Parameters
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
####INIT####
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