Los shaders pueden aplicarse a formas 2D/3D como texturas.
Para aprender más sobre cómo usar shaders en p5.js: p5.js Shaders
Shader como Textura (GLSL): Revised by Caleb Foss. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.
You can find the code history of these examples here: pre-2023 example, 2023 code. You can suggest improvements by contributing to the current website!
Ejemplos Relacionados

No alt text
Crear Gráficos
Dibujar imágenes fuera de pantalla.

No alt text
Múltiples Lienzos
Usa el Modo de Instancia para colocar múltiples lienzos en la página.

No alt text
Shader como Textura (GLSL)
Genera una textura para una forma 3D usando un shader.

No alt text
Shader como Textura (p5.strands)
Genera una textura para una forma 3D usando un shader.