shader()
Rendering / ShadersDescription
Applies a PShader to the rendering pipeline.
Syntax
void shader(PShader& s)
Parameters
| Name | Type | Description |
|---|---|---|
| s | PShader | the shader to apply |
Returns
voidRelated
Under the Hood
From Processing.h:
void shader(PShader& s);
Under the Hood
From Processing.cpp:
void PApplet::shader(PShader& s){ s.bind(); activeShader=&s; }