着色器可以作为纹理应用于 2D/3D 形状。
要了解更多关于在 p5.js 中使用着色器的信息,请参阅:p5.js 着色器
着色器作为纹理 (p5.strands): Based on p5.js Contributors. Revised by Caleb Foss. Remixed by Dorine Tipo. From 2026 onwards, 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 code, 2023 code, 2026 p5.strands translation. You can suggest improvements by contributing to the current website!