Packageaway3d.core.light
Classpublic class PointLight
InheritancePointLight Inheritance LightPrimitive

Point light primitive

Public Properties
 PropertyDefined by
 Inheritedambient : Number
Coefficient for the ambient light intensity.
LightPrimitive
 InheritedambientBitmap : BitmapData
Lightmap for ambient intensity.
LightPrimitive
 InheritedambientDiffuseBitmap : BitmapData
Combined lightmap for ambient and diffuse intensities.
LightPrimitive
 Inheritedblue : Number
Blue component level.
LightPrimitive
 Inheriteddiffuse : Number
Coefficient for the diffuse light intensity.
LightPrimitive
 InheriteddiffuseBitmap : BitmapData
Lightmap for diffuse intensity.
LightPrimitive
 InheritedfallOff : Number
falloff radius of the light.
LightPrimitive
 Inheritedgreen : Number
Green component level.
LightPrimitive
  light : PointLight3D
A reference to the PointLight3D object used by the light primitive.
PointLight
 Inheritedradius : Number
radius of the light.
LightPrimitive
 Inheritedred : Number
Red component level.
LightPrimitive
 Inheritedspecular : Number
Coefficient for the specular light intensity.
LightPrimitive
 InheritedspecularBitmap : BitmapData
Lightmap for specular intensity.
LightPrimitive
  viewPositions : Dictionary
Positions dictionary for the view positions used by shading materials.
PointLight
Public Methods
 MethodDefined by
  
Clears the position dictionaries used in the shading materials.
PointLight
  
setViewPosition(view:View3D):void
Updates the view position.
PointLight
  
Updates the position of the point light.
PointLight
Property detail
lightproperty
light:PointLight3D  [read-write]

A reference to the PointLight3D object used by the light primitive.

Implementation
    public function get light():PointLight3D
    public function set light(value:PointLight3D):void
viewPositionsproperty 
public var viewPositions:Dictionary

Positions dictionary for the view positions used by shading materials.

Method detail
clearViewPositions()method
public function clearViewPositions():void

Clears the position dictionaries used in the shading materials.

setViewPosition()method 
public function setViewPosition(view:View3D):void

Updates the view position.

Parameters
view:View3D
updatePosition()method 
public function updatePosition(e:Object3DEvent):void

Updates the position of the point light.

Parameters
e:Object3DEvent
Wiki link
Click to go to the wiki page for 'away3d.core.light.PointLight'

Code examples

Comments