Package | away3d.materials.passes |
Class | public class SuperShaderPass |
Inheritance | SuperShaderPass CompiledPass MaterialPassBase flash.events.EventDispatcher |
See also
Property | Defined By | ||
---|---|---|---|
alphaPremultiplied : Boolean
Indicates whether visible textures (or other pixels) used by this material have
already been premultiplied. | MaterialPassBase | ||
ambientMethod : BasicAmbientMethod
The method that provides the ambient lighting contribution. | CompiledPass | ||
animateUVs : Boolean
Indicate whether UV coordinates need to be animated using the renderable's transformUV matrix. | CompiledPass | ||
animationRegisterCache : AnimationRegisterCache | MaterialPassBase | ||
animationSet : IAnimationSet
Returns the animation data set adding animations to the material. | MaterialPassBase | ||
bothSides : Boolean
Defines whether or not the material should perform backface culling. | MaterialPassBase | ||
colorTransform : ColorTransform
The ColorTransform object to transform the colour of the material with. | SuperShaderPass | ||
colorTransformMethod : ColorTransformMethod
The ColorTransformMethod object to transform the colour of the material with. | SuperShaderPass | ||
depthCompareMode : String
The depth compare mode used to render the renderables using this material. | MaterialPassBase | ||
diffuseLightSources : uint
Define which light source types to use for diffuse reflections. | CompiledPass | ||
diffuseMethod : BasicDiffuseMethod
The method that provides the diffuse lighting contribution. | CompiledPass | ||
enableLightFallOff : Boolean
Whether or not to use fallOff and radius properties for lights. | CompiledPass | ||
forceSeparateMVP : Boolean
Indicates whether the screen projection should be calculated by forcing a separate scene matrix and
view-projection matrix. | CompiledPass | ||
includeCasters : Boolean
Indicates whether lights that cast shadows should be included in the pass. | SuperShaderPass | ||
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]
Indicates whether the pass requires any UV animatin code. | MaterialPassBase | ||
normalMap : Texture2DBase
The normal map to modulate the direction of the surface for each texel. | CompiledPass | ||
normalMethod : BasicNormalMethod
The method used to generate the per-pixel normals. | CompiledPass | ||
numMethods : int [read-only]
The number of "effect" methods added to the material. | SuperShaderPass | ||
numUsedFragmentConstants : uint [read-only]
The amount of used fragment constants in the fragment code. | 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
Indicates whether the output alpha value should remain unchanged compared to the material's original alpha. | CompiledPass | ||
renderToTexture : Boolean [read-only]
Specifies whether this pass renders to texture
| MaterialPassBase | ||
repeat : Boolean
Defines whether textures should be tiled. | MaterialPassBase | ||
shadowMethod : ShadowMapMethodBase
The method used to render shadows cast on this surface, or null if no shadows are to be rendered. | CompiledPass | ||
smooth : Boolean
Defines whether smoothing should be applied to any used textures. | MaterialPassBase | ||
specularLightSources : uint
Define which light source types to use for specular reflections. | CompiledPass | ||
specularMethod : BasicSpecularMethod
The method that provides the specular lighting contribution. | CompiledPass | ||
writeDepth : Boolean
Indicate whether this pass should write to the depth buffer or not. | MaterialPassBase |
Method | Defined By | ||
---|---|---|---|
SuperShaderPass(material:MaterialBase)
Creates a new SuperShaderPass objects. | SuperShaderPass | ||
addMethod(method:EffectMethodBase):void
Appends an "effect" shading method to the shader. | SuperShaderPass | ||
addMethodAt(method:EffectMethodBase, index:int):void
Adds an effect method at the specified index amongst the methods already added to the material. | SuperShaderPass | ||
dispose():void [override]
Cleans up any resources used by the current object. | CompiledPass | ||
getMethodAt(index:int):EffectMethodBase
Returns the method added at the given index. | SuperShaderPass | ||
hasMethod(method:EffectMethodBase):Boolean
Queries whether a given effect method was added to the material. | SuperShaderPass | ||
removeMethod(method:EffectMethodBase):void
Removes an effect method from the material. | SuperShaderPass | ||
setBlendMode(value:String):void
The blend mode to use when drawing this renderable. | MaterialPassBase |
Method | Defined By | ||
---|---|---|---|
addPasses(passes:Vector.<MaterialPassBase>):void
Adds internal passes to the material. | CompiledPass | ||
addPassesFromMethods():void [override]
Adds any possible passes needed by the used methods. | SuperShaderPass | ||
cleanUp():void
Cleans up the after compiling. | CompiledPass | ||
createCompiler(profile:String):ShaderCompiler [override]
Factory method to create a concrete compiler object for this pass. | SuperShaderPass | ||
initCommonsData():void
Initializes commonly required constant values. | CompiledPass | ||
initCompiler(profile:String):void
Initializes the compiler for this pass. | CompiledPass | ||
initUVTransformData():void
Initializes the default UV transformation matrix. | CompiledPass | ||
updateLightConstants():void [override]
Updates constant data render state used by the lights. | SuperShaderPass | ||
updateLights():void [override]
Implemented by subclasses if the pass uses lights to update the shader. | SuperShaderPass | ||
updateMethodConstants():void [override]
Updates method constants if they have changed. | SuperShaderPass | ||
updateProbes(stage3DProxy:Stage3DProxy):void [override]
Updates constant data render state used by the light probes. | SuperShaderPass | ||
updateRegisterIndices():void
Updates the indices for various registers. | CompiledPass | ||
updateShaderProperties():void
Copies the shader's properties from the compiler. | CompiledPass | ||
usesLights():Boolean
Indicates whether the shader uses any lights. | CompiledPass | ||
usesProbes():Boolean
Indicates whether the shader uses any light probes. | CompiledPass |
colorTransform | property |
colorTransform:ColorTransform
The ColorTransform object to transform the colour of the material with. Defaults to null.
public function get colorTransform():ColorTransform
public function set colorTransform(value:ColorTransform):void
colorTransformMethod | property |
colorTransformMethod:ColorTransformMethod
The ColorTransformMethod object to transform the colour of the material with. Defaults to null.
public function get colorTransformMethod():ColorTransformMethod
public function set colorTransformMethod(value:ColorTransformMethod):void
ignoreLights | property |
ignoreLights:Boolean
Indicates whether lights should be ignored in this pass. This is used when only effect methods are rendered in a multipass material.
arcane function get ignoreLights():Boolean
arcane function set ignoreLights(value:Boolean):void
includeCasters | property |
includeCasters:Boolean
Indicates whether lights that cast shadows should be included in the pass.
public function get includeCasters():Boolean
public function set includeCasters(value:Boolean):void
numMethods | property |
numMethods:int
[read-only] The number of "effect" methods added to the material.
public function get numMethods():int
SuperShaderPass | () | Constructor |
public function SuperShaderPass(material:MaterialBase)
Creates a new SuperShaderPass objects.
Parametersmaterial:MaterialBase — The material to which this material belongs.
|
activate | () | method |
override arcane function activate(stage3DProxy:Stage3DProxy, camera:Camera3D):void
Parameters
stage3DProxy:Stage3DProxy | |
camera:Camera3D |
addMethod | () | method |
public function addMethod(method:EffectMethodBase):void
Appends an "effect" shading method to the shader. Effect methods are those that do not influence the lighting but modulate the shaded colour, used for fog, outlines, etc. The method will be applied to the result of the methods added prior.
Parameters
method:EffectMethodBase |
addMethodAt | () | method |
public function addMethodAt(method:EffectMethodBase, index:int):void
Adds an effect method at the specified index amongst the methods already added to the material. Effect methods are those that do not influence the lighting but modulate the shaded colour, used for fog, outlines, etc. The method will be applied to the result of the methods with a lower index.
Parameters
method:EffectMethodBase | |
index:int |
addPassesFromMethods | () | method |
override protected function addPassesFromMethods():void
Adds any possible passes needed by the used methods.
createCompiler | () | method |
override protected function createCompiler(profile:String):ShaderCompiler
Factory method to create a concrete compiler object for this pass.
Parameters
profile:String — The compatibility profile used by the renderer.
|
ShaderCompiler |
deactivate | () | method |
override arcane function deactivate(stage3DProxy:Stage3DProxy):void
Parameters
stage3DProxy:Stage3DProxy |
getMethodAt | () | method |
public function getMethodAt(index:int):EffectMethodBase
Returns the method added at the given index.
Parameters
index:int — The index of the method to retrieve.
|
EffectMethodBase — The method at the given index.
|
hasMethod | () | method |
public function hasMethod(method:EffectMethodBase):Boolean
Queries whether a given effect method was added to the material.
Parameters
method:EffectMethodBase — The method to be queried.
|
Boolean — true if the method was added to the material, false otherwise.
|
removeMethod | () | method |
public function removeMethod(method:EffectMethodBase):void
Removes an effect method from the material.
Parameters
method:EffectMethodBase — The method to be removed.
|
updateLightConstants | () | method |
override protected function updateLightConstants():void
Updates constant data render state used by the lights. This method is optional for subclasses to implement.
updateLights | () | method |
override protected function updateLights():void
Implemented by subclasses if the pass uses lights to update the shader.
updateMethodConstants | () | method |
override protected function updateMethodConstants():void
Updates method constants if they have changed.
updateProbes | () | method |
override protected function updateProbes(stage3DProxy:Stage3DProxy):void
Updates constant data render state used by the light probes. This method is optional for subclasses to implement.
Parameters
stage3DProxy:Stage3DProxy |