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.

Methods

copyFrom(method:ShadingMethodBase):Void

@inheritDoc

Inherited Variables

Defined by BasicNormalMethod

Defined by ShadingMethodBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by BasicNormalMethod

dispose():Void

@inheritDoc

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void