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 Mon Sep 21 15:53:25 2020.

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