Package | away3d.lights |
Class | public class DirectionalLight3D |
Inheritance | DirectionalLight3D AbstractLight |
Property | Defined by | ||
---|---|---|---|
ambient : Number
Defines a coefficient for the ambient light intensity.
| DirectionalLight3D | ||
ambientBitmap : BitmapData
Lightmap for ambient intensity.
| AbstractLight | ||
ambientColorTransform : ColorTransform
Color transform used in cached shading materials for combined ambient and diffuse color intensities.
| AbstractLight | ||
ambientDiffuseBitmap : BitmapData
Combined lightmap for ambient and diffuse intensities.
| AbstractLight | ||
brightness : Number
Defines a coefficient for the overall light intensity.
| DirectionalLight3D | ||
color : uint
Defines the color of the light object.
| AbstractLight | ||
debug : Boolean
Toggles debug mode: light object is visualised in the scene.
| AbstractLight | ||
diffuse : Number
Defines a coefficient for the diffuse light intensity.
| DirectionalLight3D | ||
diffuseBitmap : BitmapData
Lightmap for diffuse intensity.
| AbstractLight | ||
diffuseColorTransform : ColorTransform
Color transform used in cached shading materials for ambient intensities.
| AbstractLight | ||
direction : Vector3D
Defines the direction of the light relative to the local coordinates of the parent
ObjectContainer3D . | DirectionalLight3D | ||
parent : ObjectContainer3D
Defines the parent of the light.
| AbstractLight | ||
sceneDirection : Vector3D [read-only]
| DirectionalLight3D | ||
specular : Number
Defines a coefficient for the specular light intensity.
| DirectionalLight3D | ||
specularBitmap : BitmapData
Lightmap for specular intensity.
| AbstractLight |
Method | Defined by | ||
---|---|---|---|
DirectionalLight3D
(init:Object = null)
Creates a new
DirectionalLight3D object. | DirectionalLight3D | ||
Duplicates the light object's properties to another
DirectionalLight3D object
| DirectionalLight3D |
Method | Defined by | ||
---|---|---|---|
DirectionalLight3D | |||
updateAmbientDiffuse():void
Updates the bitmapData object used as the lightmap for the combined ambient and diffue light shading.
| DirectionalLight3D |
ambient | property |
ambient:Number
[read-write]Defines a coefficient for the ambient light intensity.
Implementation public function get ambient():Number
public function set ambient(value:Number):void
brightness | property |
brightness:Number
[read-write]Defines a coefficient for the overall light intensity.
Implementation public function get brightness():Number
public function set brightness(value:Number):void
diffuse | property |
diffuse:Number
[read-write]Defines a coefficient for the diffuse light intensity.
Implementation public function get diffuse():Number
public function set diffuse(value:Number):void
direction | property |
direction:Vector3D
[read-write]
Defines the direction of the light relative to the local coordinates of the parent ObjectContainer3D
.
public function get direction():Vector3D
public function set direction(value:Vector3D):void
sceneDirection | property |
sceneDirection:Vector3D
[read-only]Implementation
public function get sceneDirection():Vector3D
specular | property |
specular:Number
[read-write]Defines a coefficient for the specular light intensity.
Implementation public function get specular():Number
public function set specular(value:Number):void
DirectionalLight3D | () | constructor |
public function DirectionalLight3D(init:Object = null)
Parameters
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
direction:Vector3D | |
ambient:Number (default = 0.5, min:0, max:1) | |
diffuse:Number (default = 0.5, min:0, max:10) | |
specular:Number (default = 1, min:0, max:1) | |
brightness:Number (default = 1) | |
debug:Boolean (default = false) |
clone | () | method |
public override function clone(light:AbstractLight = null):AbstractLight
Duplicates the light object's properties to another DirectionalLight3D
object
light:AbstractLight (default = null ) — [optional] The new light instance into which all properties are copied
|
AbstractLight —
The new light instance with duplicated properties applied
|
onSceneTransformChange | () | method |
protected override function onSceneTransformChange(event:Object3DEvent = null):void
Parameters
event:Object3DEvent (default = null )
|
updateAmbientDiffuse | () | method |
protected override function updateAmbientDiffuse():void
Updates the bitmapData object used as the lightmap for the combined ambient and diffue light shading.