Package | away3d.materials.methods |
Class | public class AlphaMaskMethod |
Inheritance | AlphaMaskMethod EffectMethodBase ShadingMethodBase NamedAssetBase flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
The type of the asset. | EffectMethodBase | ||
id : String | NamedAssetBase | ||
name : String | NamedAssetBase | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
passes : Vector.<MaterialPassBase> [read-only]
Any passes required that render to a texture used by this method. | ShadingMethodBase | ||
texture : Texture2DBase
The texture to use as the alpha mask. | AlphaMaskMethod | ||
useSecondaryUV : Boolean
Indicated whether or not the secondary uv set for the mask. | AlphaMaskMethod |
Method | Defined By | ||
---|---|---|---|
AlphaMaskMethod(texture:Texture2DBase, useSecondaryUV:Boolean = false)
Creates a new AlphaMaskMethod object
| AlphaMaskMethod | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object. | ShadingMethodBase | ||
dispose():void
Cleans up any resources used by the current object. | ShadingMethodBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
texture | property |
texture:Texture2DBase
The texture to use as the alpha mask.
public function get texture():Texture2DBase
public function set texture(value:Texture2DBase):void
useSecondaryUV | property |
useSecondaryUV:Boolean
Indicated whether or not the secondary uv set for the mask. This allows mapping alpha independently, for instance to tile the main texture and normal map while providing untiled alpha, for example to define the transparency over a tiled water surface.
public function get useSecondaryUV():Boolean
public function set useSecondaryUV(value:Boolean):void
AlphaMaskMethod | () | Constructor |
public function AlphaMaskMethod(texture:Texture2DBase, useSecondaryUV:Boolean = false)
Creates a new AlphaMaskMethod object
Parameterstexture:Texture2DBase — The texture to use as the alpha mask.
| |
useSecondaryUV:Boolean (default = false ) — Indicated whether or not the secondary uv set for the mask. This allows mapping alpha independently.
|
activate | () | method |
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
vo:MethodVO | |
stage3DProxy:Stage3DProxy |
getFragmentCode | () | method |
override arcane function getFragmentCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
vo:MethodVO | |
regCache:ShaderRegisterCache | |
targetReg:ShaderRegisterElement |
String |
initVO | () | method |
override arcane function initVO(vo:MethodVO):void
Initializes the properties for a MethodVO, including register and texture indices.
Parameters
vo:MethodVO — The MethodVO object linking this method with the pass currently being compiled.
|