Package | away3d.core.light |
Class | public class DirectionalLight |
Inheritance | DirectionalLight LightPrimitive |
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 | ||
direction : Number3D | DirectionalLight | ||
fallOff : Number
falloff radius of the light.
| LightPrimitive | ||
green : Number
Green component level.
| LightPrimitive | ||
light : 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 | ||
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 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 | ||
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 | ||
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.
direction | property |
public var direction:Number3D
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
setDirection | () | method |
public function setDirection(sceneDirection:Number3D):void
Updates the direction vector of the directional light.
ParameterssceneDirection:Number3D |
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:uint, shininess:Number):void
Updates the normal transform matrix.
Parameterssource:Object3D |
|
view:View3D |
|
specular:uint |
|
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.
updateSpecularBitmap | () | method |
public function updateSpecularBitmap():void
Updates the bitmapData object used as the lightmap for specular light shading.