Packageaway3d.core.light
Classpublic class AmbientLight
InheritanceAmbientLight Inheritance LightPrimitive

Ambient 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
 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
Public Methods
 MethodDefined by
  
updateAmbientBitmap(ambient:Number):void
Updates the bitmapData object used as the lightmap for ambient light shading.
AmbientLight
Method detail
updateAmbientBitmap()method
public function updateAmbientBitmap(ambient:Number):void

Updates the bitmapData object used as the lightmap for ambient light shading.

Parameters
ambient:Number — The coefficient for ambient light intensity.
Wiki link
Click to go to the wiki page for 'away3d.core.light.AmbientLight'

Code examples

Comments