ShadingMethodBase provides an abstract base method for shading methods, used by DefaultScreenPass to compile
the final shading program.
protected var _globalPosReg:ShaderRegisterElement
protected var _normalFragmentReg:ShaderRegisterElement
protected var _passes:Vector.<MaterialPassBase>
protected var _projectionReg:ShaderRegisterElement
protected var _secondaryUVFragmentReg:ShaderRegisterElement
protected var _tangentVaryingReg:ShaderRegisterElement
protected var _uvFragmentReg:ShaderRegisterElement
protected var _viewDirFragmentReg:ShaderRegisterElement
protected var _viewDirVaryingReg:ShaderRegisterElement
globalPosReg:ShaderRegisterElement
Implementation arcane function get globalPosReg():ShaderRegisterElement
arcane function set globalPosReg(value:ShaderRegisterElement):void
normalFragmentReg:ShaderRegisterElement
Implementation arcane function get normalFragmentReg():ShaderRegisterElement
arcane function set normalFragmentReg(value:ShaderRegisterElement):void
passes:Vector.<MaterialPassBase>
[read-only]
Any passes required that render to a texture used by this method.
Implementation public function get passes():Vector.<MaterialPassBase>
projectionReg:ShaderRegisterElement
Implementation arcane function get projectionReg():ShaderRegisterElement
arcane function set projectionReg(value:ShaderRegisterElement):void
secondaryUVFragmentReg:ShaderRegisterElement
Implementation arcane function get secondaryUVFragmentReg():ShaderRegisterElement
arcane function set secondaryUVFragmentReg(value:ShaderRegisterElement):void
tangentVaryingReg:ShaderRegisterElement
Implementation arcane function get tangentVaryingReg():ShaderRegisterElement
arcane function set tangentVaryingReg(value:ShaderRegisterElement):void
UVFragmentReg:ShaderRegisterElement
Implementation arcane function get UVFragmentReg():ShaderRegisterElement
arcane function set UVFragmentReg(value:ShaderRegisterElement):void
viewDirFragmentReg:ShaderRegisterElement
Implementation arcane function get viewDirFragmentReg():ShaderRegisterElement
arcane function set viewDirFragmentReg(value:ShaderRegisterElement):void
viewDirVaryingReg:ShaderRegisterElement
Implementation public function get viewDirVaryingReg():ShaderRegisterElement
public function set viewDirVaryingReg(value:ShaderRegisterElement):void
public function ShadingMethodBase()
Create a new ShadingMethodBase object.
public function copyFrom(method:ShadingMethodBase):void
Copies the state from a ShadingMethodBase object into the current object.
Parameters
arcane function createMethodVO():MethodVO
Creates a data container that contains material-dependent data. Provided as a factory method so a custom subtype can be overridden when needed.
Returns public function dispose():void
Cleans up any resources used by the current object.
protected function 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.
Parameters
Returns | String — The fragment code that performs the sampling.
|
arcane function initConstants(vo:MethodVO):void
Parameters
arcane function initVO(vo:MethodVO):void
Parameters
protected function invalidateShaderProgram():void
Marks the shader program as invalid, so it will be recompiled before the next render.
arcane function reset():void
arcane function setRenderState(vo:MethodVO, renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D):void
Sets the render state for a single renderable.
Parameters
Tue Jul 17 2012, 10:37 AM +01:00