Packageaway3d.materials.methods
Classpublic class ShaderMethodSetup
InheritanceShaderMethodSetup Inheritance flash.events.EventDispatcher

ShaderMethodSetup contains the method configuration for an entire material.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
Creates a new ShaderMethodSetup object.
ShaderMethodSetup
  
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
  
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
  
Removes a method from the pass.
ShaderMethodSetup
Property Detail
_ambientMethodproperty
arcane var _ambientMethod:BasicAmbientMethod

_ambientMethodVOproperty 
arcane var _ambientMethodVO:MethodVO

_colorTransformMethodproperty 
arcane var _colorTransformMethod:ColorTransformMethod

_colorTransformMethodVOproperty 
arcane var _colorTransformMethodVO:MethodVO

_diffuseMethodproperty 
arcane var _diffuseMethod:BasicDiffuseMethod

_diffuseMethodVOproperty 
arcane var _diffuseMethodVO:MethodVO

_methodsproperty 
arcane var _methods:Vector.<MethodVOSet>

_normalMethodproperty 
arcane var _normalMethod:BasicNormalMethod

_normalMethodVOproperty 
arcane var _normalMethodVO:MethodVO

_shadowMethodproperty 
arcane var _shadowMethod:ShadowMapMethodBase

_shadowMethodVOproperty 
arcane var _shadowMethodVO:MethodVO

_specularMethodproperty 
arcane var _specularMethod:BasicSpecularMethod

_specularMethodVOproperty 
arcane var _specularMethodVO:MethodVO

ambientMethodproperty 
ambientMethod:BasicAmbientMethod

The method that provides the ambient lighting contribution.


Implementation
    public function get ambientMethod():BasicAmbientMethod
    public function set ambientMethod(value:BasicAmbientMethod):void
colorTransformMethodproperty 
colorTransformMethod:ColorTransformMethod


Implementation
    arcane function get colorTransformMethod():ColorTransformMethod
    arcane function set colorTransformMethod(value:ColorTransformMethod):void
diffuseMethodproperty 
diffuseMethod:BasicDiffuseMethod

The method that provides the diffuse lighting contribution.


Implementation
    public function get diffuseMethod():BasicDiffuseMethod
    public function set diffuseMethod(value:BasicDiffuseMethod):void
normalMethodproperty 
normalMethod:BasicNormalMethod

The method used to generate the per-pixel normals.


Implementation
    public function get normalMethod():BasicNormalMethod
    public function set normalMethod(value:BasicNormalMethod):void
numMethodsproperty 
numMethods:int  [read-only]

The number of "effect" methods added to the material.


Implementation
    public function get numMethods():int
shadowMethodproperty 
shadowMethod:ShadowMapMethodBase

The method used to render shadows cast on this surface, or null if no shadows are to be rendered.


Implementation
    public function get shadowMethod():ShadowMapMethodBase
    public function set shadowMethod(value:ShadowMapMethodBase):void
specularMethodproperty 
specularMethod:BasicSpecularMethod

The method to perform specular shading.


Implementation
    public function get specularMethod():BasicSpecularMethod
    public function set specularMethod(value:BasicSpecularMethod):void
Constructor Detail
ShaderMethodSetup()Constructor
public function ShaderMethodSetup()

Creates a new ShaderMethodSetup object.

Method Detail
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.

Returns
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.

Returns
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.