SimpleWaterNormalMethod provides a basic normal map method to create water ripples by translating two wave normal maps.


Inherited from  BasicNormalMethod -> ShadingMethodBase -> NamedAssetBase -> EventDispatcher.


Can be created using method new:

Lib.Away3D.Materials.Methods.SimpleWaterNormalMethod.new(waveMap1, waveMap2)

Creates a new SimpleWaterNormalMethod object.

waveMap1 - Texture2DBase A normal map containing one layer of a wave structure.

waveMap2 - Texture2DBase A normal map containing a second layer of a wave structure.


Created SimpleWaterNormalMethod object has properties:

normalMap

[override] Texture2DBase 

secondaryNormalMap

Texture2DBase A second normal map that will be combined with the first to create a wave-like animation pattern.

water1OffsetX

Number. The translation of the first wave layer along the X-axis.

water1OffsetY

Number. The translation of the first wave layer along the Y-axis.

water2OffsetX

Number. The translation of the second wave layer along the X-axis.

water2OffsetY 

Number. The translation of the second wave layer along the Y-axis.


methods:

dispose()

[override] 


Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator