CompositeDiffuseMethod provides a base class for diffuse methods that wrap a diffuse method to alter the strength
of its calculated strength.
protected var _baseDiffuseMethod:BasicDiffuseMethod
alphaThreshold:Number
[override]
Implementation public function get alphaThreshold():Number
public function set alphaThreshold(value:Number):void
diffuseAlpha:Number
[override]
The alpha component of the diffuse reflection.
Implementation public function get diffuseAlpha():Number
public function set diffuseAlpha(value:Number):void
diffuseColor:uint
[override]
The color of the diffuse reflection when not using a texture.
Implementation public function get diffuseColor():uint
public function set diffuseColor(value:uint):void
shadowRegister:ShaderRegisterElement
[write-only] [override]
Implementation arcane function set shadowRegister(value:ShaderRegisterElement):void
sharedRegisters:ShaderRegisterData
[override]
Implementation arcane function get sharedRegisters():ShaderRegisterData
arcane function set sharedRegisters(value:ShaderRegisterData):void
texture:Texture2DBase
[override]
The bitmapData to use to define the diffuse reflection color per texel.
Implementation public function get texture():Texture2DBase
public function set texture(value:Texture2DBase):void
public function CompositeDiffuseMethod(modulateMethod:Function = null, baseDiffuseMethod:BasicDiffuseMethod = null)
Creates a new WrapDiffuseMethod object.
Parameters | modulateMethod:Function (default = null ) — The method which will add the code to alter the base method's strength. It needs to have the signature clampDiffuse(t : ShaderRegisterElement, regCache : ShaderRegisterCache) : String, in which t.w will contain the diffuse strength.
|
|
| baseDiffuseMethod:BasicDiffuseMethod (default = null ) — The base diffuse method on which this method's shading is based.
|
override arcane function activate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
override arcane function cleanCompilationData():void
override arcane function deactivate(vo:MethodVO, stage3DProxy:Stage3DProxy):void
Parameters
override public function dispose():void
Cleans up any resources used by the current object.
override arcane function getFragmentCodePerLight(vo:MethodVO, lightDirReg:ShaderRegisterElement, lightColReg:ShaderRegisterElement, regCache:ShaderRegisterCache):String
Get the fragment shader code that will generate the code relevant to a single light.
Parameters
Returnsoverride arcane function getFragmentCodePerProbe(vo:MethodVO, cubeMapReg:ShaderRegisterElement, weightRegister:String, regCache:ShaderRegisterCache):String
Get the fragment shader code that will generate the code relevant to a single light probe object.
Parameters
| vo:MethodVO — The register containing the cube map for the current probe
|
|
| cubeMapReg:ShaderRegisterElement — A string representation of the register + component containing the current weight
|
|
| weightRegister:String — The register cache providing any necessary registers to the shader
|
|
| regCache:ShaderRegisterCache |
Returnsoverride arcane function getFragmentPostLightingCode(vo:MethodVO, regCache:ShaderRegisterCache, targetReg:ShaderRegisterElement):String
Parameters
Returnsoverride arcane function getFragmentPreLightingCode(vo:MethodVO, regCache:ShaderRegisterCache):String
Parameters
Returnsoverride arcane function getVertexCode(vo:MethodVO, regCache:ShaderRegisterCache):String
Parameters
Returnsoverride arcane function initConstants(vo:MethodVO):void
Parameters
override arcane function initVO(vo:MethodVO):void
Parameters
override arcane function reset():void
Thu Nov 15 2012, 12:08 PM Z