EffectRenderer

Helper class to render one or more effects

Hierarchy

  • EffectRenderer

Index

Constructors

constructor

Find examples in Playground

Methods

applyEffectWrapper

Find examples in Playground
  • Sets the current effect wrapper to use during draw. The effect needs to be ready before calling this api. This also sets the default full screen position attribute.

    Parameters

    Returns void

bindBuffers

Find examples in Playground
  • bindBuffers(effect: Effect): void
  • Binds the embedded attributes buffer to the effect.

    Parameters

    • effect: Effect

      Defines the effect to bind the attributes for

    Returns void

dispose

Find examples in Playground
  • dispose(): void
  • Disposes of the effect renderer

    Returns void

draw

Find examples in Playground
  • draw(): void
  • Draws a full screen quad.

    Returns void

render

Find examples in Playground
  • renders one or more effects to a specified texture

    Parameters

    Returns void

setViewport

Find examples in Playground
  • setViewport(viewport?: Viewport): void
  • Sets the current viewport in normalized coordinates 0-1

    Parameters

    • Optional viewport: Viewport

      Defines the viewport to set (defaults to 0 0 1 1)

    Returns void

Generated using TypeDoc