Name

resetShader()

Examples
size(100, 100, P2D)
img = loadImage("apples.jpg")
edges = loadShader("blur.glsl")

shader(edges)
image(img, 0, 0)
resetShader()
image(img, width / 2, 0)
Description Restores the default shaders. Code that runs after resetShader() will not be affected by previously defined shaders.
Syntax
resetShader()
resetShader(kind)
Parameters
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.