| Package | away3d.materials.utils |
| Class | public class WaterMap |
| Inheritance | WaterMap flash.display.BitmapData |
| Property | Defined By | ||
|---|---|---|---|
| smoothing : Boolean
Indicates whether or not to use smoothing on the normal map when upscaling
| WaterMap | ||
| Method | Defined By | ||
|---|---|---|---|
WaterMap(width:int, height:int, sourceWidth:int, sourceHeight:int, sourceMap:BitmapData, smoothing:Boolean = true)
Create a WaterMap object
| WaterMap | ||
showNext():void
Show the next step in the animation cycle
| WaterMap | ||
| smoothing | property |
smoothing:BooleanIndicates whether or not to use smoothing on the normal map when upscaling
public function get smoothing():Boolean public function set smoothing(value:Boolean):void| WaterMap | () | Constructor |
public function WaterMap(width:int, height:int, sourceWidth:int, sourceHeight:int, sourceMap:BitmapData, smoothing:Boolean = true)Create a WaterMap object
Parameterswidth:int — The width of the material it will be used in
| |
height:int — The height of the material it will be used in
| |
sourceWidth:int — The original width of 1 tile in the map
| |
sourceHeight:int — The original height of 1 tile in the map
| |
sourceMap:BitmapData — The source stitched animation map
| |
smoothing:Boolean (default = true) — Indicates whether or not to use smoothing on the normal map when upscaling
|
| showNext | () | method |
public function showNext():voidShow the next step in the animation cycle