Packageaway3d.lights
Classpublic class PointLight3D
InheritancePointLight3D Inheritance AbstractLight Inheritance Object

Lightsource that colors all shaded materials proportional to the dot product of the distance vector with the normal vector. The scalar value of the distance is used to calulate intensity using the inverse square law of attenuation.



Public Properties
 PropertyDefined By
  ambient : Number
Defines a coefficient for the ambient light intensity.
PointLight3D
 InheritedambientBitmap : BitmapData
[read-only] Lightmap for ambient intensity.
AbstractLight
 InheritedambientColorTransform : ColorTransform
[read-only] Color transform used in cached shading materials for combined ambient and diffuse color intensities.
AbstractLight
 InheritedambientDiffuseBitmap : BitmapData
[read-only] Combined lightmap for ambient and diffuse intensities.
AbstractLight
  brightness : Number
Defines a coefficient for the overall light intensity.
PointLight3D
 Inheritedcolor : uint
Defines the color of the light object.
AbstractLight
 Inheriteddebug : Boolean
Toggles debug mode: light object is visualised in the scene.
AbstractLight
  diffuse : Number
Defines a coefficient for the diffuse light intensity.
PointLight3D
 InheriteddiffuseBitmap : BitmapData
[read-only] Lightmap for diffuse intensity.
AbstractLight
 InheriteddiffuseColorTransform : ColorTransform
[read-only] Color transform used in cached shading materials for ambient intensities.
AbstractLight
  fallOff : Number
Defines the max length of the light rays, beyond this distance, light doesn't have influence the light values are from radius 100% to falloff 0%
PointLight3D
 Inheritedparent : ObjectContainer3D
Defines the parent of the light.
AbstractLight
  position : Vector3D
Defines the position of the light relative to the local coordinates of the parent ObjectContainer3D.
PointLight3D
  radius : Number
Defines the radius of the light at full intensity, infleunced object get within this range full color of the light
PointLight3D
  scenePosition : Vector3D
[read-only]
PointLight3D
  specular : Number
Defines a coefficient for the specular light intensity.
PointLight3D
 InheritedspecularBitmap : BitmapData
[read-only] Lightmap for specular intensity.
AbstractLight
  x : Number
Defines the x coordinate of the light relative to the local coordinates of the parent ObjectContainer3D.
PointLight3D
  y : Number
Defines the y coordinate of the light relative to the local coordinates of the parent ObjectContainer3D.
PointLight3D
  z : Number
Defines the z coordinate of the light relative to the local coordinates of the parent ObjectContainer3D.
PointLight3D
Protected Properties
 PropertyDefined By
 Inheritedini : 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
  
PointLight3D(init:Object = null)
Creates a new PointLight3D object.
PointLight3D
  
[override] Duplicates the light object's properties to another PointLight3D object
PointLight3D
Protected Methods
 MethodDefined By
  
[override]
PointLight3D
  
[override]
PointLight3D
  
[override]
PointLight3D
  
[override]
PointLight3D
Property Detail
ambientproperty
public var ambient:Number

Defines a coefficient for the ambient light intensity.

brightnessproperty 
public var brightness:Number

Defines a coefficient for the overall light intensity.

diffuseproperty 
public var diffuse:Number

Defines a coefficient for the diffuse light intensity.

fallOffproperty 
fallOff:Number

Defines the max length of the light rays, beyond this distance, light doesn't have influence the light values are from radius 100% to falloff 0%


Implementation
    public function get fallOff():Number
    public function set fallOff(value:Number):void
positionproperty 
position:Vector3D

Defines the position of the light relative to the local coordinates of the parent ObjectContainer3D.


Implementation
    public function get position():Vector3D
    public function set position(value:Vector3D):void
radiusproperty 
radius:Number

Defines the radius of the light at full intensity, infleunced object get within this range full color of the light


Implementation
    public function get radius():Number
    public function set radius(value:Number):void
scenePositionproperty 
scenePosition:Vector3D  [read-only]


Implementation
    public function get scenePosition():Vector3D
specularproperty 
public var specular:Number

Defines a coefficient for the specular light intensity.

xproperty 
x:Number

Defines the x coordinate of the light relative to the local coordinates of the parent ObjectContainer3D.


Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number

Defines the y coordinate of the light relative to the local coordinates of the parent ObjectContainer3D.


Implementation
    public function get y():Number
    public function set y(value:Number):void
zproperty 
z:Number

Defines the z coordinate of the light relative to the local coordinates of the parent ObjectContainer3D.


Implementation
    public function get z():Number
    public function set z(value:Number):void
Constructor Detail
PointLight3D()Constructor
public function PointLight3D(init:Object = null)

Creates a new PointLight3D object.

Parameters
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
####INIT####
Method Detail
addDebugPrimitive()method
override protected function addDebugPrimitive(parent:ObjectContainer3D):void

Parameters

parent:ObjectContainer3D

clone()method 
override public function clone(light:AbstractLight = null):AbstractLight

Duplicates the light object's properties to another PointLight3D 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
onSceneTransformChange()method 
override protected function onSceneTransformChange(event:Object3DEvent = null):void

Parameters

event:Object3DEvent (default = null)

removeDebugPrimitive()method 
override protected function removeDebugPrimitive(parent:ObjectContainer3D):void

Parameters

parent:ObjectContainer3D

updateDebugPrimitive()method 
override protected function updateDebugPrimitive():void