TerrainDiffuseMethod provides a diffuse method that uses different tiled textures with alpha masks to create a large surface with high detail and less apparent tiling.


Inherited from BasicDiffuseMethod -> LightingMethodBase -> ShadingMethodBase -> NamedAssetBase -> EventDispatcher.


Can be created using method new:

Lib.Away3D.Materials.Methods.TerrainDiffuseMethod.new(splatTextures, blendingTexture, tileData)

Creates a new TerrainDiffuseMethod.

splatTextures - An table of Texture2DBase containing the detailed textures to be tiled.

blendingTexture - Texture2DBase The texture containing the blending data. The red, green, and blue channels contain the blending values for each of the textures in splatTextures, respectively. tileData - Table, the amount of times each splat texture needs to be tiled. The first entry in the table applies to the base texture, the others to the splats. If omitted, the default value of 50 is assumed for each.


Has properties:

alphaThreshold

Number. [override]



Created with the Personal Edition of HelpNDoc: Free Kindle producer