| 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 |
|
Updated on Mon Sep 21 15:53:25 2020.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License