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. |
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.