Package | away3d.materials.methods |
Class | public class ShaderMethodSetup |
Inheritance | ShaderMethodSetup flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
ambientMethod : BasicAmbientMethod
The method that provides the ambient lighting contribution. | ShaderMethodSetup | ||
diffuseMethod : BasicDiffuseMethod
The method that provides the diffuse lighting contribution. | ShaderMethodSetup | ||
normalMethod : BasicNormalMethod
The method used to generate the per-pixel normals. | ShaderMethodSetup | ||
numMethods : int [read-only]
The number of "effect" methods added to the material. | ShaderMethodSetup | ||
shadowMethod : ShadowMapMethodBase
The method used to render shadows cast on this surface, or null if no shadows are to be rendered. | ShaderMethodSetup | ||
specularMethod : BasicSpecularMethod
The method to perform specular shading. | ShaderMethodSetup |
Method | Defined By | ||
---|---|---|---|
Creates a new ShaderMethodSetup object. | ShaderMethodSetup | ||
addMethod(method:EffectMethodBase):void
Adds a method to change the material after all lighting is performed. | ShaderMethodSetup | ||
addMethodAt(method:EffectMethodBase, index:int):void
Inserts a method to change the material after all lighting is performed at the given index. | ShaderMethodSetup | ||
dispose():void
Disposes the object. | ShaderMethodSetup | ||
getMethodAt(index:int):EffectMethodBase
Returns the method added at the given index. | ShaderMethodSetup | ||
hasMethod(method:EffectMethodBase):Boolean
Queries whether a given effect method was added to the material. | ShaderMethodSetup | ||
removeMethod(method:EffectMethodBase):void
Removes a method from the pass. | ShaderMethodSetup |
_ambientMethod | property |
arcane var _ambientMethod:BasicAmbientMethod
_ambientMethodVO | property |
arcane var _ambientMethodVO:MethodVO
_colorTransformMethod | property |
arcane var _colorTransformMethod:ColorTransformMethod
_colorTransformMethodVO | property |
arcane var _colorTransformMethodVO:MethodVO
_diffuseMethod | property |
arcane var _diffuseMethod:BasicDiffuseMethod
_diffuseMethodVO | property |
arcane var _diffuseMethodVO:MethodVO
_methods | property |
arcane var _methods:Vector.<MethodVOSet>
_normalMethod | property |
arcane var _normalMethod:BasicNormalMethod
_normalMethodVO | property |
arcane var _normalMethodVO:MethodVO
_shadowMethod | property |
arcane var _shadowMethod:ShadowMapMethodBase
_shadowMethodVO | property |
arcane var _shadowMethodVO:MethodVO
_specularMethod | property |
arcane var _specularMethod:BasicSpecularMethod
_specularMethodVO | property |
arcane var _specularMethodVO:MethodVO
ambientMethod | property |
ambientMethod:BasicAmbientMethod
The method that provides the ambient lighting contribution.
public function get ambientMethod():BasicAmbientMethod
public function set ambientMethod(value:BasicAmbientMethod):void
colorTransformMethod | property |
colorTransformMethod:ColorTransformMethod
arcane function get colorTransformMethod():ColorTransformMethod
arcane function set colorTransformMethod(value:ColorTransformMethod):void
diffuseMethod | property |
diffuseMethod:BasicDiffuseMethod
The method that provides the diffuse lighting contribution.
public function get diffuseMethod():BasicDiffuseMethod
public function set diffuseMethod(value:BasicDiffuseMethod):void
normalMethod | property |
normalMethod:BasicNormalMethod
The method used to generate the per-pixel normals.
public function get normalMethod():BasicNormalMethod
public function set normalMethod(value:BasicNormalMethod):void
numMethods | property |
numMethods:int
[read-only] The number of "effect" methods added to the material.
public function get numMethods():int
shadowMethod | property |
shadowMethod:ShadowMapMethodBase
The method used to render shadows cast on this surface, or null if no shadows are to be rendered.
public function get shadowMethod():ShadowMapMethodBase
public function set shadowMethod(value:ShadowMapMethodBase):void
specularMethod | property |
specularMethod:BasicSpecularMethod
The method to perform specular shading.
public function get specularMethod():BasicSpecularMethod
public function set specularMethod(value:BasicSpecularMethod):void
ShaderMethodSetup | () | Constructor |
public function ShaderMethodSetup()
Creates a new ShaderMethodSetup object.
addMethod | () | method |
public function addMethod(method:EffectMethodBase):void
Adds a method to change the material after all lighting is performed.
Parameters
method:EffectMethodBase — The method to be added.
|
addMethodAt | () | method |
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
|
dispose | () | method |
public function dispose():void
Disposes the object.
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 a method from the pass.
Parameters
method:EffectMethodBase — The method to be removed.
|