Packageaway3d.materials.utils
Classpublic class WaterMap
InheritanceWaterMap Inheritance flash.display.BitmapData

Water maps allows you to stitch several procedural water normal maps and update the animation with a single method call. It extends BitmapData and as such can be used as a run-of-the-mill normal map. Water maps can be generated with 3D software such as Blender.



Public Properties
 PropertyDefined By
  smoothing : Boolean
Indicates whether or not to use smoothing on the normal map when upscaling
WaterMap
Public Methods
 MethodDefined 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
Property Detail
smoothingproperty
smoothing:Boolean

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
Constructor Detail
WaterMap()Constructor
public function WaterMap(width:int, height:int, sourceWidth:int, sourceHeight:int, sourceMap:BitmapData, smoothing:Boolean = true)

Create a WaterMap object

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
####INIT####
Method Detail
showNext()method
public function showNext():void

Show the next step in the animation cycle