| Package | away3d.materials.passes |
| Class | public class CompiledPass |
| Inheritance | CompiledPass MaterialPassBase flash.events.EventDispatcher |
| Subclasses | LightingPass, ShadowCasterPass, SuperShaderPass |
| Property | Defined By | ||
|---|---|---|---|
![]() | alphaPremultiplied : Boolean | MaterialPassBase | |
| ambientMethod : BasicAmbientMethod | CompiledPass | ||
| animateUVs : Boolean | CompiledPass | ||
![]() | animationRegisterCache : AnimationRegisterCache | MaterialPassBase | |
![]() | animationSet : IAnimationSet
The animation used to add vertex code to the shader code. | MaterialPassBase | |
![]() | bothSides : Boolean
Defines whether or not the material should perform backface culling. | MaterialPassBase | |
![]() | depthCompareMode : String | MaterialPassBase | |
| diffuseLightSources : uint | CompiledPass | ||
| diffuseMethod : BasicDiffuseMethod | CompiledPass | ||
| enableLightFallOff : Boolean | CompiledPass | ||
| forceSeparateMVP : Boolean | CompiledPass | ||
![]() | material : MaterialBase
The material to which this pass belongs. | MaterialPassBase | |
| mipmap : Boolean [override]
Defines whether any used textures should use mipmapping. | CompiledPass | ||
![]() | needFragmentAnimation : Boolean [read-only] | MaterialPassBase | |
![]() | needUVAnimation : Boolean [read-only] | MaterialPassBase | |
| normalMap : Texture2DBase
The tangent space normal map to influence the direction of the surface for each texel. | CompiledPass | ||
| normalMethod : BasicNormalMethod | CompiledPass | ||
![]() | numUsedFragmentConstants : uint [read-only] | MaterialPassBase | |
![]() | numUsedStreams : uint [read-only]
The amount of used vertex streams in the vertex code. | MaterialPassBase | |
![]() | numUsedVaryings : uint [read-only] | MaterialPassBase | |
![]() | numUsedVertexConstants : uint [read-only]
The amount of used vertex constants in the vertex code. | MaterialPassBase | |
| preserveAlpha : Boolean | CompiledPass | ||
![]() | renderToTexture : Boolean [read-only]
Specifies whether this pass renders to texture
| MaterialPassBase | |
![]() | repeat : Boolean
Defines whether textures should be tiled. | MaterialPassBase | |
| shadowMethod : ShadowMapMethodBase | CompiledPass | ||
![]() | smooth : Boolean
Defines whether smoothing should be applied to any used textures. | MaterialPassBase | |
| specularLightSources : uint | CompiledPass | ||
| specularMethod : BasicSpecularMethod | CompiledPass | ||
![]() | writeDepth : Boolean
Indicate whether this pass should write to the depth buffer or not. | MaterialPassBase | |
| Method | Defined By | ||
|---|---|---|---|
CompiledPass(material:MaterialBase) | CompiledPass | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompiledPass | ||
![]() | setBlendMode(value:String):void | MaterialPassBase | |
| Method | Defined By | ||
|---|---|---|---|
addPasses(passes:Vector.<MaterialPassBase>):void
Adds passes to the list. | CompiledPass | ||
addPassesFromMethods():void | CompiledPass | ||
cleanUp():void | CompiledPass | ||
createCompiler(profile:String):ShaderCompiler | CompiledPass | ||
initCommonsData():void | CompiledPass | ||
initCompiler(profile:String):void | CompiledPass | ||
initUVTransformData():void | CompiledPass | ||
updateLightConstants():void | CompiledPass | ||
![]() | updateLights():void | MaterialPassBase | |
updateMethodConstants():void | CompiledPass | ||
updateProbes(stage3DProxy:Stage3DProxy):void | CompiledPass | ||
updateRegisterIndices():void | CompiledPass | ||
updateShaderProperties():void | CompiledPass | ||
usesLights():Boolean | CompiledPass | ||
usesProbes():Boolean | CompiledPass | ||
| _ambientLightB | property |
protected var _ambientLightB:Number| _ambientLightG | property |
protected var _ambientLightG:Number| _ambientLightR | property |
protected var _ambientLightR:Number| _animateUVs | property |
protected var _animateUVs:Boolean| _cameraPositionIndex | property |
protected var _cameraPositionIndex:int| _commonsDataIndex | property |
protected var _commonsDataIndex:int| _compiler | property |
protected var _compiler:ShaderCompiler| _diffuseLightSources | property |
protected var _diffuseLightSources:uint = 0x03| _enableLightFallOff | property |
protected var _enableLightFallOff:Boolean = true| _fragmentConstantData | property |
protected var _fragmentConstantData:Vector.<Number>| _fragmentLightCode | property |
protected var _fragmentLightCode:String| _framentPostLightCode | property |
protected var _framentPostLightCode:String| _lightFragmentConstantIndex | property |
protected var _lightFragmentConstantIndex:int| _lightProbeDiffuseIndices | property |
protected var _lightProbeDiffuseIndices:Vector.<uint>| _lightProbeSpecularIndices | property |
protected var _lightProbeSpecularIndices:Vector.<uint>| _methodSetup | property |
protected var _methodSetup:ShaderMethodSetup| _normalBufferIndex | property |
protected var _normalBufferIndex:int| _numDirectionalLights | property |
protected var _numDirectionalLights:uint| _numLightProbes | property |
protected var _numLightProbes:uint| _numPointLights | property |
protected var _numPointLights:uint| _passes | property |
arcane var _passes:Vector.<MaterialPassBase>| _passesDirty | property |
arcane var _passesDirty:Boolean| _preserveAlpha | property |
protected var _preserveAlpha:Boolean = true| _probeWeightsIndex | property |
protected var _probeWeightsIndex:int| _sceneMatrixIndex | property |
protected var _sceneMatrixIndex:int| _sceneNormalMatrixIndex | property |
protected var _sceneNormalMatrixIndex:int| _secondaryUVBufferIndex | property |
protected var _secondaryUVBufferIndex:int| _specularLightSources | property |
protected var _specularLightSources:uint = 0x01| _tangentBufferIndex | property |
protected var _tangentBufferIndex:int| _usesNormals | property |
protected var _usesNormals:Boolean| _usingSpecularMethod | property |
protected var _usingSpecularMethod:Boolean| _uvBufferIndex | property |
protected var _uvBufferIndex:int| _uvTransformIndex | property |
protected var _uvTransformIndex:int| _vertexCode | property |
protected var _vertexCode:String| _vertexConstantData | property |
protected var _vertexConstantData:Vector.<Number>| ambientMethod | property |
ambientMethod:BasicAmbientMethod public function get ambientMethod():BasicAmbientMethod public function set ambientMethod(value:BasicAmbientMethod):void| animateUVs | property |
animateUVs:Boolean public function get animateUVs():Boolean public function set animateUVs(value:Boolean):void| diffuseLightSources | property |
diffuseLightSources:uint public function get diffuseLightSources():uint public function set diffuseLightSources(value:uint):void| diffuseMethod | property |
diffuseMethod:BasicDiffuseMethod public function get diffuseMethod():BasicDiffuseMethod public function set diffuseMethod(value:BasicDiffuseMethod):void| enableLightFallOff | property |
enableLightFallOff:Boolean public function get enableLightFallOff():Boolean public function set enableLightFallOff(value:Boolean):void| forceSeparateMVP | property |
forceSeparateMVP:Boolean public function get forceSeparateMVP():Boolean public function set forceSeparateMVP(value:Boolean):void| mipmap | property |
mipmap:Boolean[override] Defines whether any used textures should use mipmapping.
public function get mipmap():Boolean public function set mipmap(value:Boolean):void| normalMap | property |
normalMap:Texture2DBaseThe tangent space normal map to influence the direction of the surface for each texel.
public function get normalMap():Texture2DBase public function set normalMap(value:Texture2DBase):void| normalMethod | property |
normalMethod:BasicNormalMethod public function get normalMethod():BasicNormalMethod public function set normalMethod(value:BasicNormalMethod):void| numDirectionalLights | property |
numDirectionalLights:uint [read-only] arcane function get numDirectionalLights():uint| numLightProbes | property |
numLightProbes:uint [read-only] arcane function get numLightProbes():uint| numPointLights | property |
numPointLights:uint [read-only] arcane function get numPointLights():uint| preserveAlpha | property |
preserveAlpha:Boolean public function get preserveAlpha():Boolean public function set preserveAlpha(value:Boolean):void| shadowMethod | property |
shadowMethod:ShadowMapMethodBase public function get shadowMethod():ShadowMapMethodBase public function set shadowMethod(value:ShadowMapMethodBase):void| specularLightSources | property |
specularLightSources:uint public function get specularLightSources():uint public function set specularLightSources(value:uint):void| specularMethod | property |
specularMethod:BasicSpecularMethod public function get specularMethod():BasicSpecularMethod public function set specularMethod(value:BasicSpecularMethod):void| CompiledPass | () | Constructor |
| activate | () | method |
override arcane function activate(stage3DProxy:Stage3DProxy, camera:Camera3D):void
Parameters
stage3DProxy:Stage3DProxy | |
camera:Camera3D |
| addPasses | () | method |
protected function addPasses(passes:Vector.<MaterialPassBase>):voidAdds passes to the list.
Parameters
passes:Vector.<MaterialPassBase> |
| addPassesFromMethods | () | method |
protected function addPassesFromMethods():void| cleanUp | () | method |
protected function cleanUp():void| createCompiler | () | method |
protected function createCompiler(profile:String):ShaderCompilerParameters
profile:String |
ShaderCompiler |
| deactivate | () | method |
override arcane function deactivate(stage3DProxy:Stage3DProxy):void
Parameters
stage3DProxy:Stage3DProxy |
| dispose | () | method |
override public function dispose():voidCleans up any resources used by the current object.
| getFragmentCode | () | method |
override arcane function getFragmentCode(animatorCode:String):String
Parameters
animatorCode:String |
String |
| getVertexCode | () | method |
override arcane function getVertexCode():StringReturns
String |
| initCommonsData | () | method |
protected function initCommonsData():void| initCompiler | () | method |
protected function initCompiler(profile:String):voidParameters
profile:String |
| initUVTransformData | () | method |
protected function initUVTransformData():void| invalidateShaderProgram | () | method |
override arcane function invalidateShaderProgram(updateMaterial:Boolean = true):voidMarks the shader program as invalid, so it will be recompiled before the next render.
Parameters
updateMaterial:Boolean (default = true) |
| render | () | method |
override arcane function render(renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D, viewProjection:Matrix3D):void
Parameters
renderable:IRenderable | |
stage3DProxy:Stage3DProxy | |
camera:Camera3D | |
viewProjection:Matrix3D |
| updateLightConstants | () | method |
protected function updateLightConstants():void| updateMethodConstants | () | method |
protected function updateMethodConstants():void| updateProbes | () | method |
protected function updateProbes(stage3DProxy:Stage3DProxy):voidParameters
stage3DProxy:Stage3DProxy |
| updateProgram | () | method |
override arcane function updateProgram(stage3DProxy:Stage3DProxy):voidCompiles 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).
|
| updateRegisterIndices | () | method |
protected function updateRegisterIndices():void| updateShaderProperties | () | method |
protected function updateShaderProperties():void| usesLights | () | method |
protected function usesLights():BooleanReturnsBoolean |
| usesProbes | () | method |
protected function usesProbes():BooleanReturnsBoolean |