OutlinePass is a pass that offsets a mesh and draws it in a single colour. This is a pass provided by OutlineMethod.

See also:

  • away3d.materials.methods.OutlineMethod

Constructor

@:value({ dedicatedMeshes : false, showInnerLines : true, outlineSize : 20, outlineColor : 0x000000 })new(outlineColor:Int = 0x000000, outlineSize:Float = 20, showInnerLines:Bool = true, dedicatedMeshes:Bool = false)

Creates a new OutlinePass object.

Parameters:

outlineColor

The colour of the outline stroke

outlineSize

The size of the outline stroke

showInnerLines

Indicates whether or not strokes should be potentially drawn over the existing model.

dedicatedWaterProofMesh

Used to stitch holes appearing due to mismatching normals for overlapping vertices. Warning: this will create a new mesh that is incompatible with animations!

Variables

Methods

clearDedicatedMesh(mesh:Mesh):Void

Clears the dedicated mesh associated with a Mesh object to free up memory.

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