| Package | away3d.lights |
| Class | public class PointLight3D |
| Inheritance | PointLight3D AbstractLight Object |
| Property | Defined By | ||
|---|---|---|---|
| ambient : Number
Defines a coefficient for the ambient light intensity. | PointLight3D | ||
![]() | ambientBitmap : BitmapData [read-only]
Lightmap for ambient intensity. | AbstractLight | |
![]() | ambientColorTransform : ColorTransform [read-only]
Color transform used in cached shading materials for combined ambient and diffuse color intensities. | AbstractLight | |
![]() | ambientDiffuseBitmap : BitmapData [read-only]
Combined lightmap for ambient and diffuse intensities. | AbstractLight | |
| brightness : Number
Defines a coefficient for the overall light intensity. | PointLight3D | ||
![]() | 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. | PointLight3D | ||
![]() | diffuseBitmap : BitmapData [read-only]
Lightmap for diffuse intensity. | AbstractLight | |
![]() | diffuseColorTransform : ColorTransform [read-only]
Color transform used in cached shading materials for ambient intensities. | AbstractLight | |
| fallOff : Number
Defines the max length of the light rays, beyond this distance, light doesn't have influence
the light values are from radius 100% to falloff 0%
| PointLight3D | ||
![]() | parent : ObjectContainer3D
Defines the parent of the light. | AbstractLight | |
| position : Vector3D
Defines the position of the light relative to the local coordinates of the parent ObjectContainer3D. | PointLight3D | ||
| radius : Number
Defines the radius of the light at full intensity, infleunced object get within this range full color of the light
| PointLight3D | ||
| scenePosition : Vector3D [read-only] | PointLight3D | ||
| specular : Number
Defines a coefficient for the specular light intensity. | PointLight3D | ||
![]() | specularBitmap : BitmapData [read-only]
Lightmap for specular intensity. | AbstractLight | |
| x : Number
Defines the x coordinate of the light relative to the local coordinates of the parent ObjectContainer3D. | PointLight3D | ||
| y : Number
Defines the y coordinate of the light relative to the local coordinates of the parent ObjectContainer3D. | PointLight3D | ||
| z : Number
Defines the z coordinate of the light relative to the local coordinates of the parent ObjectContainer3D. | PointLight3D | ||
| Method | Defined By | ||
|---|---|---|---|
PointLight3D(init:Object = null)
Creates a new PointLight3D object. | PointLight3D | ||
[override]
Duplicates the light object's properties to another PointLight3D object
| PointLight3D | ||
| Method | Defined By | ||
|---|---|---|---|
addDebugPrimitive(parent:ObjectContainer3D):void [override] | PointLight3D | ||
onSceneTransformChange(event:Object3DEvent = null):void [override] | PointLight3D | ||
removeDebugPrimitive(parent:ObjectContainer3D):void [override] | PointLight3D | ||
updateDebugPrimitive():void [override] | PointLight3D | ||
| ambient | property |
public var ambient:NumberDefines a coefficient for the ambient light intensity.
| brightness | property |
public var brightness:NumberDefines a coefficient for the overall light intensity.
| diffuse | property |
public var diffuse:NumberDefines a coefficient for the diffuse light intensity.
| fallOff | property |
fallOff:NumberDefines the max length of the light rays, beyond this distance, light doesn't have influence the light values are from radius 100% to falloff 0%
public function get fallOff():Number public function set fallOff(value:Number):void| position | property |
position:Vector3D
Defines the position of the light relative to the local coordinates of the parent ObjectContainer3D.
public function get position():Vector3D public function set position(value:Vector3D):void| radius | property |
radius:NumberDefines the radius of the light at full intensity, infleunced object get within this range full color of the light
public function get radius():Number public function set radius(value:Number):void| scenePosition | property |
scenePosition:Vector3D [read-only] public function get scenePosition():Vector3D| specular | property |
public var specular:NumberDefines a coefficient for the specular light intensity.
| x | property |
x:Number
Defines the x coordinate of the light relative to the local coordinates of the parent ObjectContainer3D.
public function get x():Number public function set x(value:Number):void| y | property |
y:Number
Defines the y coordinate of the light relative to the local coordinates of the parent ObjectContainer3D.
public function get y():Number public function set y(value:Number):void| z | property |
z:Number
Defines the z coordinate of the light relative to the local coordinates of the parent ObjectContainer3D.
public function get z():Number public function set z(value:Number):void| PointLight3D | () | Constructor |
public function PointLight3D(init:Object = null)
Creates a new PointLight3D object.
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
|
| addDebugPrimitive | () | method |
override protected function addDebugPrimitive(parent:ObjectContainer3D):voidParameters
parent:ObjectContainer3D |
| clone | () | method |
override public function clone(light:AbstractLight = null):AbstractLight
Duplicates the light object's properties to another PointLight3D object
Parameters
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 |
override protected function onSceneTransformChange(event:Object3DEvent = null):voidParameters
event:Object3DEvent (default = null) |
| removeDebugPrimitive | () | method |
override protected function removeDebugPrimitive(parent:ObjectContainer3D):voidParameters
parent:ObjectContainer3D |
| updateDebugPrimitive | () | method |
override protected function updateDebugPrimitive():void