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:Boolean
[read-write]Indicates whether or not to use smoothing on the normal map when upscaling
Implementation 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)
Parameters
width: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():void
Show the next step in the animation cycle