Package | away3d.core.light |
Class | public class DirectionalLight |
Inheritance | DirectionalLight ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | ambient : Number
Coefficient for the ambient light intensity.
| LightPrimitive | |
![]() | ambientBitmap : BitmapData
Lightmap for ambient intensity.
| LightPrimitive | |
![]() | ambientDiffuseBitmap : BitmapData
Combined lightmap for ambient and diffuse intensities.
| LightPrimitive | |
ambientDiffuseColorTransform : ColorTransform
Color transform used in cached shading materials for combined ambient and diffuse color intensities.
| DirectionalLight | ||
![]() | blue : Number
Blue component level.
| LightPrimitive | |
colorMatrixTransform : Dictionary
Colormatrix transform used in DOT3 materials for resolving color in the normal map.
| DirectionalLight | ||
![]() | diffuse : Number
Coefficient for the diffuse light intensity.
| LightPrimitive | |
![]() | diffuseBitmap : 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 | ||
![]() | green : Number
Green component level.
| LightPrimitive | |
light : DirectionalLight3D
A reference to the
DirectionalLight3D object used by the light primitive. | DirectionalLight | ||
normalMatrixTransform : Dictionary
Colormatrix transform used in DOT3 materials for resolving normal values in the normal map.
| DirectionalLight | ||
![]() | red : Number
Red component level.
| LightPrimitive | |
![]() | specular : Number
Coefficient for the specular light intensity.
| LightPrimitive | |
![]() | specularBitmap : BitmapData
Lightmap for specular intensity.
| LightPrimitive | |
specularTransform : Dictionary
Transform dictionary for the specular lightmap used by shading materials.
| DirectionalLight |
Method | Defined by | ||
---|---|---|---|
clearTransform():void
Clears the transform and matrix dictionaries used in the shading materials.
| DirectionalLight | ||
Updates the color transform matrix.
| DirectionalLight | ||
Updates the transform matrix for the diffuse lightmap.
| DirectionalLight | ||
Updates the normal transform matrix.
| DirectionalLight | ||
Updates the transform matrix for the specular lightmap.
| DirectionalLight | ||
updateAmbientBitmap(ambient:Number):void
Updates the bitmapData object used as the lightmap for ambient light shading.
| DirectionalLight | ||
updateAmbientDiffuseBitmap(ambient:Number, diffuse:Number):void
Updates the bitmapData object used as the lightmap for the combined ambient and diffue light shading.
| DirectionalLight | ||
updateDiffuseBitmap(diffuse:Number):void
Updates the bitmapData object used as the lightmap for diffuse light shading.
| DirectionalLight | ||
Updates the direction vector of the directional light.
| DirectionalLight | ||
updateSpecularBitmap(specular:Number):void
Updates the bitmapData object used as the lightmap for specular light shading.
| DirectionalLight |
ambientDiffuseColorTransform | property |
public var ambientDiffuseColorTransform:ColorTransform
Color transform used in cached shading materials for combined ambient and diffuse color intensities.
colorMatrixTransform | property |
public var colorMatrixTransform:Dictionary
Colormatrix transform used in DOT3 materials for resolving color in the normal map.
diffuseColorTransform | property |
public var diffuseColorTransform:ColorTransform
Color transform used in cached shading materials for ambient intensities.
diffuseTransform | property |
public var diffuseTransform:Dictionary
Transform dictionary for the diffuse lightmap used by shading materials.
light | property |
public var light:DirectionalLight3D
A reference to the DirectionalLight3D
object used by the light primitive.
normalMatrixTransform | property |
public var normalMatrixTransform:Dictionary
Colormatrix transform used in DOT3 materials for resolving normal values in the normal map.
specularTransform | property |
public var specularTransform:Dictionary
Transform dictionary for the specular lightmap used by shading materials.
clearTransform | () | method |
public function clearTransform():void
Clears the transform and matrix dictionaries used in the shading materials.
setColorMatrixTransform | () | method |
public function setColorMatrixTransform(source:Object3D):void
Updates the color transform matrix.
Parameterssource:Object3D |
See also
setDiffuseTransform | () | method |
public function setDiffuseTransform(source:Object3D):void
Updates the transform matrix for the diffuse lightmap.
Parameterssource:Object3D |
See also
setNormalMatrixTransform | () | method |
public function setNormalMatrixTransform(source:Object3D):void
Updates the normal transform matrix.
Parameterssource:Object3D |
See also
setSpecularTransform | () | method |
public function setSpecularTransform(source:Object3D, view:View3D):void
Updates the transform matrix for the specular lightmap.
Parameterssource:Object3D |
|
view:View3D |
See also
updateAmbientBitmap | () | method |
public function updateAmbientBitmap(ambient:Number):void
Updates the bitmapData object used as the lightmap for ambient light shading.
Parametersambient:Number — The coefficient for ambient light intensity.
|
updateAmbientDiffuseBitmap | () | method |
public function updateAmbientDiffuseBitmap(ambient:Number, diffuse:Number):void
Updates the bitmapData object used as the lightmap for the combined ambient and diffue light shading.
Parametersambient:Number — The coefficient for ambient light intensity.
|
|
diffuse:Number — The coefficient for diffuse light intensity.
|
updateDiffuseBitmap | () | method |
public function updateDiffuseBitmap(diffuse:Number):void
Updates the bitmapData object used as the lightmap for diffuse light shading.
Parametersdiffuse:Number — The coefficient for diffuse light intensity.
|
updateDirection | () | method |
public function updateDirection(e:Object3DEvent):void
Updates the direction vector of the directional light.
Parameterse:Object3DEvent |
updateSpecularBitmap | () | method |
public function updateSpecularBitmap(specular:Number):void
Updates the bitmapData object used as the lightmap for specular light shading.
Parametersspecular:Number — The coefficient for specular light intensity.
|