What's Changed
The upcoming patch focuses on bugfixes and documentation, particularly on strands and WebGPU. Specifically, the goal is that all strands shaders work with both WebGPU and WebGL canvases.
This is a release candidate (RC), which means it is not yet live on the p5.js Editor. Please help us to improve the stability of the newest version of p5.js by trying out this release candidate, and reporting bugs. You can also share your thoughts or get involved on Discord in the #webpgu or #p5strands channels!
To test this patch, you can load both p5.js and WebGPU mode by adding these two script tags to your sketch:
<script src="https://cdn.jsdelivr.net/npm/p5@2.2.2-rc.0/lib/p5.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5@2.2.2-rc.0/lib/p5.webgpu.js"></script>Then load WebGPU mode in createCanvas - note the async/await, this is needed for WebGPU but not WebGL:
async function setup() {
await createCanvas(400, 400, WEBGPU);
}Read more about how it works and where we plan on taking it here!
What's Changed 🎊
- 2.0 strands docs: add simple noise() example for buildFilterShader by @nbogie in #8521
- Sketch verifier: parse using the latest supported ECMAScript version by @dontwanttothink in #8522
- Add support for negative vertex indices in OBJ loader for 2.x by @avinxshKD in #8512
- Fix Show actual type in strands hook error messages by @Anshumancanrock in #8505
- Improve WebGL font error message to suggest textFont() usage by @yugalkaushik in #8513
- Fix/webgpu crash pixel density by @saurabh24thakur in #8476
- Fix WebGPU bugs surfaced by the Intro to Strands tutorial by @davepagurek in #8538
- Fix build*Shader methods in instance mode by forwarding optional scope by @aashu2006 in #8523
New Contributors
- @dontwanttothink made their first contribution in #8522
- @Anshumancanrock made their first contribution in #8505
- @saurabh24thakur made their first contribution in #8476
Full Changelog: v2.2.1...v2.2.2-rc.0