Name

shader()

Examples
size(100, 100, P2D)
img = loadImage("apples.jpg")
blur = loadShader("blur.glsl")
shader(blur)
image(img, 0, 0)
Description Applies the shader specified by the parameters. It's compatible with the P2D and P3D renderers, but not with the default renderer.
Syntax
shader(shader)
shader(shader, kind)
Parameters
shaderPShader: name of shader file
kindint: type of shader, either POINTS, LINES, or TRIANGLES

Updated on Tue Feb 27 14:07:12 2024.

If you see any errors or have comments, please let us know.