SuperShaderPass is a shader pass that uses shader methods to compile a complete program. It includes all methods associated with a material.

See also:

  • away3d.materials.methods.ShadingMethodBase

Constructor

new(material:MaterialBase)

Creates a new SuperShaderPass objects.

Parameters:

material

The material to which this material belongs.

Variables

colorTransform:ColorTransform

The ColorTransform object to transform the colour of the material with. Defaults to null.

colorTransformMethod:ColorTransformMethod

The ColorTransformMethod object to transform the colour of the material with. Defaults to null.

includeCasters:Bool

Indicates whether lights that cast shadows should be included in the pass.

read onlynumMethods:Int

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

Methods

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.

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.

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 an effect method from the material.

Parameters:

method

The method to be removed.

Inherited Variables

Inherited Methods

Defined by CompiledPass

dispose():Void

@inheritDoc

Defined by MaterialPassBase

setBlendMode(value:BlendMode):Void

The blend mode to use when drawing this renderable. The following blend modes are supported:

  • BlendMode.NORMAL: No blending, unless the material inherently needs it
  • BlendMode.LAYER: Force blending. This will draw the object the same as NORMAL, but without writing depth writes.
  • BlendMode.MULTIPLY
  • BlendMode.ADD
  • BlendMode.ALPHA