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 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.
|
public override function render(bmd:BitmapData):void
Renders the BumpMapEffect to the specified BitmapData.
Parameters