Skip to content

q5-webgpu: Increased blendMode support #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
quinton-ashley opened this issue Oct 7, 2024 · 0 comments
Open

q5-webgpu: Increased blendMode support #75

quinton-ashley opened this issue Oct 7, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@quinton-ashley
Copy link
Collaborator

quinton-ashley commented Oct 7, 2024

Here's a sketch that shows off the effect of every blend mode, this works in q5.js with the Canvas2D renderer as well.

https://editor.p5js.org/aleannab/sketches/r4VWTS7Cr
processing/p5.js#7228
https://p5js.org/reference/p5/blendMode/

When working on q5 WebGPU I followed this tutorial on how to implement some basic blend modes in v2.24.

https://webgpufundamentals.org/webgpu/lessons/webgpu-transparency.html

But I didn't add support for additional blend modes because they'd require editing each pipeline's fragment shader.

For now if you want to use other blend modes, stick to q5's Canvas2D renderer.

If anyone wants to implement increased blendMode support in WebGPU let me know.

@quinton-ashley quinton-ashley added the help wanted Extra attention is needed label Oct 7, 2024
@quinton-ashley quinton-ashley moved this to Todo in q5 Dec 9, 2024
@quinton-ashley quinton-ashley added this to q5 Dec 9, 2024
@quinton-ashley quinton-ashley moved this from Todo to Maybe in q5 Jan 31, 2025
@quinton-ashley quinton-ashley moved this from Maybe to In Progress in q5 Apr 4, 2025
@quinton-ashley quinton-ashley moved this from In Progress to Maybe in q5 Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
Status: Maybe
Development

No branches or pull requests

1 participant