MaterialPassBase provides an abstract base class for material shader passes.
protected var _alphaPremultiplied:Booleanprotected var _animatableAttributes:Arrayprotected var _animationSet:IAnimationSetprotected var _animationTargetRegisters:Arrayprotected var _defaultCulling:String = backprotected var _depthCompareMode:String = lessprotected var _material:MaterialBaseprotected var _mipmap:Boolean = trueprotected var _numDirectionalLights:uintprotected var _numLightProbes:uintprotected var _numPointLights:uintprotected var _numUsedFragmentConstants:uintprotected var _numUsedStreams:uintprotected var _numUsedTextures:uintprotected var _numUsedVertexConstants:uintarcane var _program3Dids:Vector.<int>arcane var _program3Ds:Vector.<Program3D>protected var _repeat:Boolean = falseprotected var _smooth:Boolean = truealphaPremultiplied:Boolean Implementation public function get alphaPremultiplied():Boolean public function set alphaPremultiplied(value:Boolean):voidanimationSet:IAnimationSet
The animation used to add vertex code to the shader code.
Implementation public function get animationSet():IAnimationSet public function set animationSet(value:IAnimationSet):voidbothSides:Boolean
Defines whether or not the material should perform backface culling.
Implementation public function get bothSides():Boolean public function set bothSides(value:Boolean):voiddepthCompareMode:String Implementation public function get depthCompareMode():String public function set depthCompareMode(value:String):voidmaterial:MaterialBase
The material to which this pass belongs.
Implementation public function get material():MaterialBase public function set material(value:MaterialBase):voidmipmap:Boolean
Defines whether any used textures should use mipmapping.
Implementation public function get mipmap():Boolean public function set mipmap(value:Boolean):voidnumDirectionalLights:uint Implementation arcane function get numDirectionalLights():uint arcane function set numDirectionalLights(value:uint):voidnumLightProbes:uint [write-only]
Implementation arcane function set numLightProbes(value:uint):voidnumPointLights:uint Implementation arcane function get numPointLights():uint arcane function set numPointLights(value:uint):voidnumUsedStreams:uint [read-only]
The amount of used vertex streams in the vertex code. Used by the animation code generation to know from which index on streams are available.
Implementation public function get numUsedStreams():uintnumUsedVertexConstants:uint [read-only]
The amount of used vertex constants in the vertex code. Used by the animation code generation to know from which index on registers are available.
Implementation public function get numUsedVertexConstants():uintrenderToTexture:Boolean [read-only]
Specifies whether this pass renders to texture
Implementation public function get renderToTexture():Booleanrepeat:Boolean
Defines whether textures should be tiled.
Implementation public function get repeat():Boolean public function set repeat(value:Boolean):voidsmooth:Boolean
Defines whether smoothing should be applied to any used textures.
Implementation public function get smooth():Boolean public function set smooth(value:Boolean):voidpublic function MaterialPassBase(renderToTexture:Boolean = false)
Creates a new MaterialPassBase object.
Parameters | renderToTexture:Boolean (default = false) |
arcane function activate(stage3DProxy:Stage3DProxy, camera:Camera3D, textureRatioX:Number, textureRatioY:Number):void Parameters
public function dispose():void
Cleans up any resources used by the current object.
arcane function getFragmentCode():StringReturns arcane function getVertexCode(code:String):String Parameters
Returns 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) — Indicates whether the invalidation should be performed on the entire material. Should always pass "true" unless it's called from the material itself.
|
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