Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EffectRenderer

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

constructor

  • Creates an effect renderer

    Parameters

    Returns EffectRenderer

Methods

applyEffectWrapperSearch playground for applyEffectWrapper

  • 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

bindBuffersSearch playground for bindBuffers

  • 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

disposeSearch playground for dispose

  • dispose(): void
  • Disposes of the effect renderer

    Returns void

drawSearch playground for draw

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

    Returns void

renderSearch playground for render

  • renders one or more effects to a specified texture

    Parameters

    Returns void

restoreStatesSearch playground for restoreStates

  • restoreStates(): void
  • Restores engine states

    Returns void

setViewportSearch playground for setViewport

  • 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Static method