Package | away3d.core.light |
Class | public class PointLight |
Inheritance | PointLight ![]() |
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 | |
![]() | blue : Number
Blue component level.
| LightPrimitive | |
![]() | diffuse : Number
Coefficient for the diffuse light intensity.
| LightPrimitive | |
![]() | diffuseBitmap : BitmapData
Lightmap for diffuse intensity.
| LightPrimitive | |
![]() | green : Number
Green component level.
| LightPrimitive | |
light : PointLight3D
A reference to the
PointLight3D object used by the light primitive. | PointLight | ||
![]() | red : Number
Red component level.
| LightPrimitive | |
![]() | specular : Number
Coefficient for the specular light intensity.
| LightPrimitive | |
![]() | specularBitmap : BitmapData
Lightmap for specular intensity.
| LightPrimitive | |
viewPositions : Dictionary
Positions dictionary for the view positions used by shading materials.
| PointLight |
Method | Defined by | ||
---|---|---|---|
clearViewPositions():void
Clears the position dictionaries used in the shading materials.
| PointLight | ||
Updates the view position.
| PointLight | ||
Updates the position of the point light.
| PointLight |
light | property |
light:PointLight3D
[read-write]
A reference to the PointLight3D
object used by the light primitive.
public function get light():PointLight3D
public function set light(value:PointLight3D):void
viewPositions | property |
public var viewPositions:Dictionary
Positions dictionary for the view positions used by shading materials.
clearViewPositions | () | method |
public function clearViewPositions():void
Clears the position dictionaries used in the shading materials.
setViewPosition | () | method |
updatePosition | () | method |
public function updatePosition(e:Object3DEvent):void
Updates the position of the point light.
Parameterse:Object3DEvent |