CompiledPass forms an abstract base class for the default compiled pass materials provided by Away3D, using material methods to define their appearance.

Constructor

new(material:MaterialBase)

Creates a new CompiledPass object.

Parameters:

material

The material to which this pass belongs.

Variables

Methods

dispose():Void

@inheritDoc

Inherited Variables

Inherited Methods

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