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 | |
ambientColorTransform : ColorTransform
Color transform used in cached shading materials for combined ambient and diffuse color intensities.
| DirectionalLight | ||
![]() | ambientDiffuseBitmap : BitmapData
Combined lightmap for ambient and diffuse intensities.
| LightPrimitive | |
![]() | blue : Number
Blue component level.
| LightPrimitive | |
![]() | 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 | ||
![]() | fallOff : Number
falloff radius of the light.
| LightPrimitive | |
![]() | green : Number
Green component level.
| LightPrimitive | |
light : DirectionalLight3D
A reference to the
DirectionalLight3D object used by the light primitive. | DirectionalLight | ||
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 | ||
![]() | radius : Number
radius of the light.
| LightPrimitive | |
![]() | 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 transform matrix for the diffuse lightmap.
| DirectionalLight | ||
Updates the normal transform matrix.
| DirectionalLight | ||
setNormalMatrixSpecularTransform(source:Object3D, view:View3D, specular:Number, shininess:Number):void
Updates the normal transform matrix.
| DirectionalLight | ||
Updates the transform matrix for the specular lightmap.
| DirectionalLight | ||
updateAmbientBitmap():void
Updates the bitmapData object used as the lightmap for ambient light shading.
| DirectionalLight | ||
updateAmbientDiffuseBitmap():void
Updates the bitmapData object used as the lightmap for the combined ambient and diffue light shading.
| DirectionalLight | ||
updateDiffuseBitmap():void
Updates the bitmapData object used as the lightmap for diffuse light shading.
| DirectionalLight | ||
Updates the direction vector of the directional light.
| DirectionalLight | ||
updateSpecularBitmap():void
Updates the bitmapData object used as the lightmap for specular light shading.
| DirectionalLight |
ambientColorTransform | property |
public var ambientColorTransform:ColorTransform
Color transform used in cached shading materials for combined ambient and diffuse color intensities.
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 |
light:DirectionalLight3D
[read-write]
A reference to the DirectionalLight3D
object used by the light primitive.
public function get light():DirectionalLight3D
public function set light(value:DirectionalLight3D):void
normalMatrixDiffuseTransform | property |
public var normalMatrixDiffuseTransform:Dictionary
Colormatrix transform used in DOT3 materials for resolving normal values in the normal map.
normalMatrixSpecularTransform | property |
public var normalMatrixSpecularTransform: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.
setDiffuseTransform | () | method |
public function setDiffuseTransform(source:Object3D):void
Updates the transform matrix for the diffuse lightmap.
Parameterssource:Object3D |
See also
setNormalMatrixDiffuseTransform | () | method |
public function setNormalMatrixDiffuseTransform(source:Object3D):void
Updates the normal transform matrix.
Parameterssource:Object3D |
See also
setNormalMatrixSpecularTransform | () | method |
public function setNormalMatrixSpecularTransform(source:Object3D, view:View3D, specular:Number, shininess:Number):void
Updates the normal transform matrix.
Parameterssource:Object3D |
|
view:View3D |
|
specular:Number |
|
shininess:Number |
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():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.
updateDirection | () | method |
public function updateDirection(e:Object3DEvent):void
Updates the direction vector of the directional light.
Parameterse:Object3DEvent |
updateSpecularBitmap | () | method |
public function updateSpecularBitmap():void
Updates the bitmapData object used as the lightmap for specular light shading.