Py5Graphics.shader()
Contents
Py5Graphics.shader()#
Applies the shader specified by the parameters.
Description#
Applies the shader specified by the parameters. It’s compatible with the P2D
and P3D
renderers, but not with the default renderer.
This method is the same as shader() but linked to a Py5Graphics
object. To see example code for how it can be used, see shader().
Underlying Processing method: PGraphics.shader
Signatures#
shader(
shader: Py5Shader, # name of shader file
/,
) -> None
shader(
shader: Py5Shader, # name of shader file
kind: int, # type of shader, either POINTS, LINES, or TRIANGLES
/,
) -> None
Updated on September 01, 2022 14:08:27pm UTC