View source
class AlphaMaskMethod
package away3d.materials.methods
extends EffectMethodBase › ShadingMethodBase › NamedAssetBase
Available on all platforms
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
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. |