着色器可以作为纹理应用于 2D/3D 形状。
要了解更多关于在 p5.js 中使用着色器的信息,请参阅:p5.js 着色器
着色器作为纹理 (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!