Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ported the stroke shader to WebGPU renderer#7915

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
davepagurek merged 20 commits intoprocessing:webgpufromlukeplowden:webgpu
Jun 16, 2025

Conversation

@lukeplowden
Copy link
Member

Changes:
I've ported the WebGL/ GLSL stroke shader to the experimental WebGPU renderer. It also includes the hooks.

Screenshots of the change:
image

);
if(!structMatch){
thrownewError(`Can't find a structdefinition for${structName}`);
thrownewError(`Can't find a structdefnition for${structName}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks like a character got lost in here?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hmm true sorry, growing pains from switching text editor

discard;
}
}
var col = HOOK_getFinalColor(vec4<f32>(inputs.color.rgb, 1.) * inputs.color.a);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

oh I noticed this and updated it in the color shader too, but I had intended the hooks to always get un-multiplied alpha, so the multiplication by the alpha channel would happen after the hook instead of before. The GLSL version of this may need that update too

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Ok will update!

console.log(
"🌸 p5.js says: Instancing is only supported in WebGL2 mode"
);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Might be missing a } here

Copy link
Contributor

@davepagurekdavepagurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good, thanks for working on this!

@davepagurekdavepagurek merged commita454ffe intoprocessing:webgpuJun 16, 2025
1 of 2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@davepagurekdavepagurekdavepagurek approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@lukeplowden@davepagurek

[8]ページ先頭

©2009-2025 Movatter.jp