ShadingMethodBase provides an abstract base method for shading methods, used by DefaultScreenPass to compile
the final shading program.
protected var _passes:Vector.<MaterialPassBase>
protected var _sharedRegisters:ShaderRegisterData
passes:Vector.<MaterialPassBase>
[read-only]
Any passes required that render to a texture used by this method.
Implementation public function get passes():Vector.<MaterialPassBase>
sharedRegisters:ShaderRegisterData
Implementation arcane function get sharedRegisters():ShaderRegisterData
arcane function set sharedRegisters(value:ShaderRegisterData):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 getTex2DSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, texture:TextureProxyBase, 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.
|
protected function getTexCubeSampleCode(vo:MethodVO, targetReg:ShaderRegisterElement, inputReg:ShaderRegisterElement, texture:TextureProxyBase, uvReg:ShaderRegisterElement):String
Parameters
Returns 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
Thu Nov 15 2012, 12:08 PM Z