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 Jul 11 06:52:24 2017.
Creative Commons License