Packageaway3d.materials.methods
Classpublic class AlphaMaskMethod
InheritanceAlphaMaskMethod Inheritance EffectMethodBase Inheritance ShadingMethodBase Inheritance flash.events.EventDispatcher

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).



Public Properties
 PropertyDefined By
 Inheritedpasses : Vector.<MaterialPassBase>
[read-only] Any passes required that render to a texture used by this method.
ShadingMethodBase
  texture : Texture2DBase
AlphaMaskMethod
  useSecondaryUV : Boolean
AlphaMaskMethod
 InheritedviewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
Protected Properties
 PropertyDefined By
 Inherited_globalPosReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_normalFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_passes : Vector.<MaterialPassBase>
ShadingMethodBase
 Inherited_projectionReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_secondaryUVFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_tangentVaryingReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_uvFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_viewDirFragmentReg : ShaderRegisterElement
ShadingMethodBase
 Inherited_viewDirVaryingReg : ShaderRegisterElement
ShadingMethodBase
Public Methods
 MethodDefined By
  
AlphaMaskMethod(texture:Texture2DBase, useSecondaryUV:Boolean = false)
AlphaMaskMethod
 Inherited
Copies the state from a ShadingMethodBase object into the current object.
ShadingMethodBase
 Inherited
dispose():void
Cleans up any resources used by the current object.
ShadingMethodBase
Protected Methods
 MethodDefined By
 Inherited
getTexSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, uvReg:ShaderRegisterElement = null, forceWrap:String = null):String
A helper method that generates standard code for sampling from a texture using the normal uv coordinates.
ShadingMethodBase
 Inherited
Marks the shader program as invalid, so it will be recompiled before the next render.
ShadingMethodBase
Property Detail
textureproperty
texture:Texture2DBase


Implementation
    public function get texture():Texture2DBase
    public function set texture(value:Texture2DBase):void
useSecondaryUVproperty 
useSecondaryUV:Boolean


Implementation
    public function get useSecondaryUV():Boolean
    public function set useSecondaryUV(value:Boolean):void
Constructor Detail
AlphaMaskMethod()Constructor
public function AlphaMaskMethod(texture:Texture2DBase, useSecondaryUV:Boolean = false)



Parameters
texture:Texture2DBase
 
useSecondaryUV:Boolean (default = false)
Method Detail
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

Returns
String
initVO()method 
override arcane function initVO(vo:MethodVO):void

Parameters

vo:MethodVO