Options
All
  • Public
  • Public/Protected
  • All
Menu

Helper class to render one or more effects. You can access the previous rendering in your shader by declaring a sampler named textureSampler

Hierarchy

  • EffectRenderer

Index

Constructors

  • Creates an effect renderer

    Parameters

    Returns EffectRenderer

Methods

  • 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(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(): void
  • Disposes of the effect renderer

    Returns void

  • draw(): void
  • Draws a full screen quad.

    Returns void

  • renders one or more effects to a specified texture

    Parameters

    Returns void

  • restoreStates(): void
  • Restores engine states

    Returns 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme