View source
class ShaderMethodSetup
package away3d.materials.methods
extends EventDispatcher
Available on all platforms
ShaderMethodSetup contains the method configuration for an entire material.
Constructor
Variables
Methods
addMethod(method:EffectMethodBase):Void
Adds a method to change the material after all lighting is performed.
Parameters:
method | The method to be added. |
|---|
addMethodAt(method:EffectMethodBase, index:Int):Void
Inserts a method to change the material after all lighting is performed at the given index.
Parameters:
method | The method to be added. |
|---|---|
index | The index of the method's occurrence |
getMethodAt(index:Int):EffectMethodBase
Returns the method added at the given index.
Parameters:
index | The index of the method to retrieve. |
|---|
Returns:
The method at the given index.
hasMethod(method:EffectMethodBase):Bool
Queries whether a given effect method was added to the material.
Parameters:
method | The method to be queried. |
|---|
Returns:
true if the method was added to the material, false otherwise.
removeMethod(method:EffectMethodBase):Void
Removes a method from the pass.
Parameters:
method | The method to be removed. |
|---|