AlphaMaskMethod allows the use of an additional texture to specify the alpha value of the material. When used with the secondary uv set, it allows for a tiled main texture with independently varying alpha (useful for water etc).

Constructor

@:value({ useSecondaryUV : false })new(texture:Texture2DBase, useSecondaryUV:Bool = false)

Creates a new AlphaMaskMethod object

Parameters:

texture

The texture to use as the alpha mask.

useSecondaryUV

Indicated whether or not the secondary uv set for the mask. This allows mapping alpha independently.

Variables

Inherited Variables

Defined by EffectMethodBase

read onlyassetType:String

Defined by ShadingMethodBase

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by ShadingMethodBase

copyFrom(method:ShadingMethodBase):Void

Copies the state from a ShadingMethodBase object into the current object.

dispose():Void

Cleans up any resources used by the current object.

Defined by NamedAssetBase

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

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