Class: EffectPass

EffectPass

EffectPass is a class used to execute a simple 2D render call. It's used by Effect classes to perform individual render tasks, but can also be used stand-alone for simple texture filtering tasks.


new EffectPass(vertexShader, fragmentShader)

Parameters:
Name Type Description
vertexShader string

The vertex shader code for this pass's shader.

fragmentShader string

The fragment shader code for this pass's shader.

Properties:
Name Type Description
mesh

Allows setting a custom mesh to render. Defaults to the default full-screen rect.

Author:
  • derschmale <http://www.derschmale.com>

Methods


draw(renderer)

Execute the EffectPass

Parameters:
Name Type Description
renderer

The main renderer used for drawing. This is only required if some automatically assigned uniforms are used.