API

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

Index

The engine the effect renderer has been created for.

  • 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

    • effectWrapper: EffectWrapper

      Defines the effect to draw with

    • depthTest: boolean = false

      Whether to enable depth testing (default: false)

    • stencilTest: boolean = false

      Whether to enable stencil testing (default: false)

    Returns void