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
 Inheritedlight : AbstractLight
A reference to the ILightProvider object used by the light primitive.
LightPrimitive
  position : Number3D
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
  
setPosition(scenePosition:Number3D):void
Updates the position of the point light.
PointLight
  
setViewPosition(view:View3D):void
Updates the view position.
PointLight
Property detail
positionproperty
public var position:Number3D
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.

setPosition()method 
public function setPosition(scenePosition:Number3D):void

Updates the position of the point light.

Parameters
scenePosition:Number3D
setViewPosition()method 
public function setViewPosition(view:View3D):void

Updates the view position.

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

Code examples

Comments