DefaultScreenPass is a shader pass that uses shader methods to compile a complete program.
protected var _cameraPositionIndex:intprotected var _lightDataIndex:intprotected var _normalBufferIndex:intarcane var _passes:Vector.<MaterialPassBase>arcane var _passesDirty:Booleanprotected var _sceneMatrixIndex:intprotected var _sceneNormalMatrixIndex:intprotected var _secondaryUVBufferIndex:intprotected var _tangentBufferIndex:intprotected var _uvBufferIndex:intprotected var _uvTransformIndex:intambientMethod:BasicAmbientMethod Implementation public function get ambientMethod():BasicAmbientMethod public function set ambientMethod(value:BasicAmbientMethod):voidanimateUVs:Boolean Implementation public function get animateUVs():Boolean public function set animateUVs(value:Boolean):voidcolorTransform:ColorTransform
The ColorTransform object to transform the colour of the material with.
Implementation public function get colorTransform():ColorTransform public function set colorTransform(value:ColorTransform):voidcolorTransformMethod:ColorTransformMethod Implementation arcane function get colorTransformMethod():ColorTransformMethod arcane function set colorTransformMethod(value:ColorTransformMethod):voiddiffuseLightSources:uint Implementation public function get diffuseLightSources():uint public function set diffuseLightSources(value:uint):voiddiffuseMethod:BasicDiffuseMethod
The method to perform diffuse shading.
Implementation public function get diffuseMethod():BasicDiffuseMethod public function set diffuseMethod(value:BasicDiffuseMethod):voidmipmap:Boolean[override]
Defines whether any used textures should use mipmapping.
Implementation public function get mipmap():Boolean public function set mipmap(value:Boolean):voidnormalMap:Texture2DBase
The tangent space normal map to influence the direction of the surface for each texel.
Implementation public function get normalMap():Texture2DBase public function set normalMap(value:Texture2DBase):voidnormalMethod:BasicNormalMethod
Implementation public function get normalMethod():BasicNormalMethod public function set normalMethod(value:BasicNormalMethod):voidnumDirectionalLights:uint[override]
Implementation arcane function get numDirectionalLights():uint arcane function set numDirectionalLights(value:uint):voidnumLightProbes:uint [write-only] [override]
Implementation arcane function set numLightProbes(value:uint):voidnumMethods:int [read-only]
Implementation public function get numMethods():intnumPointLights:uint[override]
Implementation arcane function get numPointLights():uint arcane function set numPointLights(value:uint):voidshadowMethod:ShadowMapMethodBase Implementation public function get shadowMethod():ShadowMapMethodBase public function set shadowMethod(value:ShadowMapMethodBase):voidspecularLightSources:uint Implementation public function get specularLightSources():uint public function set specularLightSources(value:uint):voidspecularMethod:BasicSpecularMethod
The method to perform specular shading.
Implementation public function get specularMethod():BasicSpecularMethod public function set specularMethod(value:BasicSpecularMethod):voidpublic function DefaultScreenPass(material:MaterialBase)
Creates a new DefaultScreenPass objects.
Parameters override arcane function activate(stage3DProxy:Stage3DProxy, camera:Camera3D, textureRatioX:Number, textureRatioY:Number):void
Parameters
public function addMethod(method:EffectMethodBase):void
Adds a method to change the material after all lighting is performed.
Parameters
public function addMethodAt(method:EffectMethodBase, index:int):void
Inserts a method to change the material after all lighting is performed at the given index.
Parameters
| method:EffectMethodBase — The method to be added.
|
| |
| index:int — The index of the method's occurrence
|
override arcane function deactivate(stage3DProxy:Stage3DProxy):void
Parameters
override public function dispose():void
Cleans up any resources used by the current object.
override arcane function getFragmentCode():String
Returns public function getMethodAt(index:int):EffectMethodBase Parameters
Returnsoverride arcane function getVertexCode(code:String):String
Parameters
Returns public function hasMethod(method:EffectMethodBase):Boolean Parameters
Returnsoverride arcane function invalidateShaderProgram(updateMaterial:Boolean = true):void
Marks the shader program as invalid, so it will be recompiled before the next render.
Parameters
| updateMaterial:Boolean (default = true) |
public function removeMethod(method:EffectMethodBase):void
Removes a method from the pass.
Parameters
override arcane function render(renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D, lightPicker:LightPickerBase):void
Parameters
override arcane function updateProgram(stage3DProxy:Stage3DProxy):void
Compiles the shader program.
Parameters
| stage3DProxy:Stage3DProxy — An optional register that contains an amount by which to inflate the model (used in single object depth map rendering).
|
Tue Jul 17 2012, 10:37 AM +01:00