load-shader

reset-shaderclj

shaderclj

load-shader

Arguments
[fragment-filename vertex-filename][fragment-filename]
Docstring
Loads a shader into the PShader object. Shaders are compatible with the
P2D and P3D renderers, but not with the default renderer.
Works only inside sketch functions?
Yes
Original Processing method
loadShader()

reset-shaderclj

Arguments
[kind][]
Docstring
Restores the default shaders. Code that runs after (reset-shader) will
not be affected by previously defined shaders. Optional 'kind' parameter -
type of shader, either :points, :lines, or :triangles
Works only inside sketch functions?
Yes
Original Processing method
resetShader()

shaderclj

Arguments
[shader kind][shader]
Docstring
Applies the shader specified by the parameters. It's compatible with the :p2d
and :p3drenderers, but not with the default :java2d renderer. Optional 'kind'
parameter - type of shader, either :points, :lines, or :triangles
Works only inside sketch functions?
Yes
Original Processing method
shader()