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 | ||
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 |
Method | Defined By | ||
---|---|---|---|
CompiledPass(material:MaterialBase) | CompiledPass | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompiledPass | ||
setBlendMode(value:String, force:Boolean = false):void | MaterialPassBase |
Method | Defined By | ||
---|---|---|---|
addPasses(passes:Vector.<MaterialPassBase>):void
Adds passes to the list. | CompiledPass | ||
addPassesFromMethods():void | CompiledPass | ||
cleanUp():void | CompiledPass | ||
CompiledPass | |||
initCommonsData():void | CompiledPass | ||
initCompiler():void | CompiledPass | ||
initUVTransformData():void | CompiledPass | ||
updateLightConstants():void | CompiledPass | ||
updateLights():void [override] | CompiledPass | ||
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
_fragmentAnimationCode | property |
protected var _fragmentAnimationCode:String
_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>
_vertexConstantsOffset | property |
protected var _vertexConstantsOffset:uint
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
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:Texture2DBase
The 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, textureRatioX:Number, textureRatioY:Number):void
Parameters
stage3DProxy:Stage3DProxy | |
camera:Camera3D | |
textureRatioX:Number | |
textureRatioY:Number |
addPasses | () | method |
protected function addPasses(passes:Vector.<MaterialPassBase>):void
Adds passes to the list.
Parameters
passes:Vector.<MaterialPassBase> |
addPassesFromMethods | () | method |
protected function addPassesFromMethods():void
cleanUp | () | method |
protected function cleanUp():void
createCompiler | () | method |
deactivate | () | method |
override arcane function deactivate(stage3DProxy:Stage3DProxy):void
Parameters
stage3DProxy:Stage3DProxy |
dispose | () | method |
override public function dispose():void
Cleans 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():String
Returns
String |
initCommonsData | () | method |
protected function initCommonsData():void
initCompiler | () | method |
protected function initCompiler():void
initUVTransformData | () | method |
protected function initUVTransformData():void
invalidateShaderProgram | () | method |
override 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 )
|
render | () | method |
override arcane function render(renderable:IRenderable, stage3DProxy:Stage3DProxy, camera:Camera3D):void
Parameters
renderable:IRenderable | |
stage3DProxy:Stage3DProxy | |
camera:Camera3D |
updateLightConstants | () | method |
protected function updateLightConstants():void
updateLights | () | method |
override protected function updateLights():void
updateMethodConstants | () | method |
protected function updateMethodConstants():void
updateProbes | () | method |
protected function updateProbes(stage3DProxy:Stage3DProxy):void
Parameters
stage3DProxy:Stage3DProxy |
updateProgram | () | method |
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).
|
updateRegisterIndices | () | method |
protected function updateRegisterIndices():void
updateShaderProperties | () | method |
protected function updateShaderProperties():void
usesLights | () | method |
protected function usesLights():Boolean
ReturnsBoolean |
usesProbes | () | method |
protected function usesProbes():Boolean
ReturnsBoolean |