Packageaway3d.core.light
Classpublic class DirectionalLight
InheritanceDirectionalLight Inheritance LightPrimitive

Directional light primitive.

Public Properties
 PropertyDefined by
 Inheritedambient : Number
Coefficient for the ambient light intensity.
LightPrimitive
 InheritedambientBitmap : BitmapData
Lightmap for ambient intensity.
LightPrimitive
  ambientColorTransform : ColorTransform
Color transform used in cached shading materials for combined ambient and diffuse color intensities.
DirectionalLight
 InheritedambientDiffuseBitmap : BitmapData
Combined lightmap for ambient and diffuse intensities.
LightPrimitive
 Inheritedblue : Number
Blue component level.
LightPrimitive
 Inheriteddiffuse : Number
Coefficient for the diffuse light intensity.
LightPrimitive
 InheriteddiffuseBitmap : BitmapData
Lightmap for diffuse intensity.
LightPrimitive
  diffuseColorTransform : ColorTransform
Color transform used in cached shading materials for ambient intensities.
DirectionalLight
  diffuseTransform : Dictionary
Transform dictionary for the diffuse lightmap used by shading materials.
DirectionalLight
  direction : Number3D
DirectionalLight
 InheritedfallOff : Number
falloff radius of the light.
LightPrimitive
 Inheritedgreen : Number
Green component level.
LightPrimitive
 Inheritedlight : AbstractLight
A reference to the ILightProvider object used by the light primitive.
LightPrimitive
  normalMatrixDiffuseTransform : Dictionary
Colormatrix transform used in DOT3 materials for resolving normal values in the normal map.
DirectionalLight
  normalMatrixSpecularTransform : Dictionary
Colormatrix transform used in DOT3 materials for resolving normal values in the normal map.
DirectionalLight
 Inheritedradius : Number
radius of the light.
LightPrimitive
 Inheritedred : Number
Red component level.
LightPrimitive
 Inheritedspecular : Number
Coefficient for the specular light intensity.
LightPrimitive
 InheritedspecularBitmap : BitmapData
Lightmap for specular intensity.
LightPrimitive
  specularTransform : Dictionary
Transform dictionary for the specular lightmap used by shading materials.
DirectionalLight
Public Methods
 MethodDefined by
  
Clears the transform and matrix dictionaries used in the shading materials.
DirectionalLight
  
Updates the transform matrix for the diffuse lightmap.
DirectionalLight
  
setDirection(sceneDirection:Number3D):void
Updates the direction vector of the directional light.
DirectionalLight
  
Updates the normal transform matrix.
DirectionalLight
  
setNormalMatrixSpecularTransform(source:Object3D, view:View3D, specular:uint, shininess:Number):void
Updates the normal transform matrix.
DirectionalLight
  
setSpecularTransform(source:Object3D, view:View3D):void
Updates the transform matrix for the specular lightmap.
DirectionalLight
  
Updates the bitmapData object used as the lightmap for ambient light shading.
DirectionalLight
  
Updates the bitmapData object used as the lightmap for the combined ambient and diffue light shading.
DirectionalLight
  
Updates the bitmapData object used as the lightmap for diffuse light shading.
DirectionalLight
  
Updates the bitmapData object used as the lightmap for specular light shading.
DirectionalLight
Property detail
ambientColorTransformproperty
public var ambientColorTransform:ColorTransform

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

diffuseColorTransformproperty 
public var diffuseColorTransform:ColorTransform

Color transform used in cached shading materials for ambient intensities.

diffuseTransformproperty 
public var diffuseTransform:Dictionary

Transform dictionary for the diffuse lightmap used by shading materials.

directionproperty 
public var direction:Number3D
normalMatrixDiffuseTransformproperty 
public var normalMatrixDiffuseTransform:Dictionary

Colormatrix transform used in DOT3 materials for resolving normal values in the normal map.

normalMatrixSpecularTransformproperty 
public var normalMatrixSpecularTransform:Dictionary

Colormatrix transform used in DOT3 materials for resolving normal values in the normal map.

specularTransformproperty 
public var specularTransform:Dictionary

Transform dictionary for the specular lightmap used by shading materials.

Method detail
clearTransform()method
public function clearTransform():void

Clears the transform and matrix dictionaries used in the shading materials.

setDiffuseTransform()method 
public function setDiffuseTransform(source:Object3D):void

Updates the transform matrix for the diffuse lightmap.

Parameters
source:Object3D

See also

diffuseTransform
setDirection()method 
public function setDirection(sceneDirection:Number3D):void

Updates the direction vector of the directional light.

Parameters
sceneDirection:Number3D
setNormalMatrixDiffuseTransform()method 
public function setNormalMatrixDiffuseTransform(source:Object3D):void

Updates the normal transform matrix.

Parameters
source:Object3D

See also

normalMatrixTransform
setNormalMatrixSpecularTransform()method 
public function setNormalMatrixSpecularTransform(source:Object3D, view:View3D, specular:uint, shininess:Number):void

Updates the normal transform matrix.

Parameters
source:Object3D
 
view:View3D
 
specular:uint
 
shininess:Number

See also

colorMatrixTransform
setSpecularTransform()method 
public function setSpecularTransform(source:Object3D, view:View3D):void

Updates the transform matrix for the specular lightmap.

Parameters
source:Object3D
 
view:View3D

See also

specularTransform
updateAmbientBitmap()method 
public function updateAmbientBitmap():void

Updates the bitmapData object used as the lightmap for ambient light shading.

updateAmbientDiffuseBitmap()method 
public function updateAmbientDiffuseBitmap():void

Updates the bitmapData object used as the lightmap for the combined ambient and diffue light shading.

updateDiffuseBitmap()method 
public function updateDiffuseBitmap():void

Updates the bitmapData object used as the lightmap for diffuse light shading.

updateSpecularBitmap()method 
public function updateSpecularBitmap():void

Updates the bitmapData object used as the lightmap for specular light shading.

Wiki link
Click to go to the wiki page for 'away3d.core.light.DirectionalLight'

Code examples

Comments