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.

Inherited Variables

Inherited Methods

Defined by BasicDiffuseMethod

copyFrom(method:ShadingMethodBase):Void

@inheritDoc

dispose():Void

@inheritDoc

generateMip(stage3DProxy:Stage3DProxy):Void

Forces the creation of the texture.

Parameters:

stage3DProxy

The Stage3DProxy used by the renderer

Defined by NamedAssetBase

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

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