What's Changed
The upcoming patch focuses on bugfixes and documentation, particularly on WebGPU and strands. 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 channel!
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.1-rc.0/lib/p5.js"></script>
<script src="https://cdn.jsdelivr.net/npm/p5@2.2.1-rc.0/lib/p5.webgpu.js"></script>Then load WebGPU mode in createCanvas:
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 🎊
- Fix rotation transformations outside of push/pop applying to main canvas in WebGPU by @davepagurek in #8423
- Make sure getTexture works in vertex shaders by @davepagurek in #8424
- Performance improvements for colors by @davepagurek in #8355
- fix textToModel regression for space characters by @skyash-dev in #8429
- add unit tests for HSB color space by @Piyushrathoree in #8376
- Experiment: flatter strands API by @davepagurek in #8314
- Auto return shader hooks by @vietnguyen2358 in #8384
- Fix
noiseDetail()in p5.js 2.x so that thefalloffparameter defaults to0.5when omitted. by @shuklaaryan367-byte in #8417 - Normalize strands noise output range to match JS noise() by @rakesh2OO5 in #8430
- fix createColorPicker ignores initial colour arg on chrome by @Piyushrathoree in #8363
- Add WebGL visual regression tests for transform functions by @aashu2006 in #8465
- Fix gifs in WebGL mode by @davepagurek in #8472
- feat(webgl): add global property support for p5.strands by @avinxshKD in #8211
- Webgpu perf updates by @davepagurek in #8480
New Contributors
- @vietnguyen2358 made their first contribution in #8384
- @shuklaaryan367-byte made their first contribution in #8417
- @rakesh2OO5 made their first contribution in #8430
- @aashu2006 made their first contribution in #8465
- @avinxshKD made their first contribution in #8211
Full Changelog: v2.2.0...v2.2.1-rc.0