View source
class TerrainDiffuseMethod
package away3d.materials.methods
extends BasicDiffuseMethod › LightingMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
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.
Constructor
new(splatTextures:Array<Texture2DBase>, blendingTexture:Texture2DBase, tileData:Array<Float>)
Creates a new TerrainDiffuseMethod.
Parameters:
splatTextures | An array of Texture2DProxyBase containing the detailed textures to be tiled. |
|---|---|
blendingTexture | 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 | The amount of times each splat texture needs to be tiled. The first entry in the array applies to the base texture, the others to the splats. If omitted, the default value of 50 is assumed for each. |