Perlin modifier. Displaces vertices based on a perlin noise bitmap.
Generates a perlin noise bitmap and displaces vertices
based on the color value of each pixel of the noise map.
public var autoRun:Boolean
public var source:PerlinNoise
public var speedX:Number = 1
public var speedY:Number = 1
public function Perlin(f:Number = 1, n:PerlinNoise = null, a:Boolean = true)
Parameters
| f:Number (default = 1) — Force
|
| |
| n:PerlinNoise (default = null) — instance of PerlinNoise class to be used as source for displacement
|
| |
| a:Boolean (default = true) — if set to true the perlin noise will be offseted at each call to 'apply', making the modifier animated automatically.
|
public override function apply():void
public static const GREY:uint = 0x80808080