View source
class HeightMapNormalMethod
package away3d.materials.methods
extends BasicNormalMethod › ShadingMethodBase › NamedAssetBase
Available on all platforms
HeightMapNormalMethod provides a normal map method that uses a height map to calculate the normals.
Constructor
new(heightMap:Texture2DBase, worldWidth:Float, worldHeight:Float, worldDepth:Float)
Creates a new HeightMapNormalMethod method.
Parameters:
heightMap | The texture containing the height data. 0 means low, 1 means high. |
|---|---|
worldWidth | The width of the 'world'. This is used to map uv coordinates' u component to scene dimensions. |
worldHeight | The height of the 'world'. This is used to map the height map values to scene dimensions. |
worldDepth | The depth of the 'world'. This is used to map uv coordinates' v component to scene dimensions. |