shader()

Rendering / Shaders

Description

Applies a PShader to the rendering pipeline.

Syntax

void shader(PShader& s)

Parameters

NameTypeDescription
sPShaderthe shader to apply

Returns

void

Related

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; }