The SingleObjectDepthPass provides a material pass that renders a single object to a depth map from the point of view from a light.

Constructor

@:value({ polyOffset : 15, textureSize : 512 })new(textureSize:Int = 512, polyOffset:Float = 15)

Creates a new SingleObjectDepthPass object.

Parameters:

textureSize

The size of the depth map texture to render to.

polyOffset

The amount by which the rendered object will be inflated, to prevent depth map rounding errors. todo: provide custom vertex code to assembler

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