Packagecom.flashdynamix.motion.effects
Classpublic class BumpMapEffect
InheritanceBumpMapEffect Inheritance DisplacementEffect Inheritance FilterEffect Inheritance flash.utils.Proxy
ImplementsIEffect

The BumpMap Effect applies a pseudo lighting effect to the BitmapData.
This is done via providing 2 BitmapDatas: a BumpMap, and a LightMap.
The BumpMap is used to apply texture onto to the lighting effect to simulate the effect of light on a textured surface.
The LightMap is used for the lighting color. Best results for this are achieved by using a vignette.



Public Properties
 PropertyDefined by
 Inheritedfilter : BitmapFilter
The BitmapFilter to apply onto the BitmapData.
FilterEffect
 InheritedmapBmd : BitmapData
The displacement BitmapData to be used.
DisplacementEffect
 InheritedmapPoint : Point
The position of the displacement mapBmd.
DisplacementEffect
 Inheritedpt : Point
The Point from which to apply the BitmapFilter
FilterEffect
Public Methods
 MethodDefined by
  
BumpMapEffect(bumpMap:BitmapData, lightMap:BitmapData, mapPoint:Point = null)
BumpMapEffect
  
render(bmd:BitmapData):void
Renders the BumpMapEffect to the specified BitmapData.
BumpMapEffect
Protected Methods
 MethodDefined by
 Inherited
getProperty(name:*):*
FilterEffect
 Inherited
setProperty(name:*, value:*):void
FilterEffect
Constructor detail
BumpMapEffect()constructor
public function BumpMapEffect(bumpMap:BitmapData, lightMap:BitmapData, mapPoint:Point = null)

Parameters
bumpMap:BitmapData — Is used to apply texture onto to the lighting effect to simulate the effect of light on a textured surface.
 
lightMap:BitmapData — Is used for the lighting color. Best results for this is by using a vignette.
 
mapPoint:Point (default = null) — The position of the lightMap, this controls the lights position on the bumpMap.
Method detail
render()method
public override function render(bmd:BitmapData):void

Renders the BumpMapEffect to the specified BitmapData.

Parameters
bmd:BitmapData