Skip to content
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

Add a points example #388

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Add a points example #388

merged 2 commits into from
Mar 11, 2024

Conversation

greggman
Copy link
Collaborator

@greggman greggman commented Mar 9, 2024

No description provided.

@greggman greggman requested a review from toji March 9, 2024 02:20
Copy link
Contributor

@toji toji left a comment

Choose a reason for hiding this comment

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

LGTM! A couple of non-blocking suggestions, but you could easily land it as-is if you wanted to.

sample/points/main.ts Outdated Show resolved Hide resolved
sample/points/main.ts Outdated Show resolved Hide resolved
sample/points/main.ts Outdated Show resolved Hide resolved
sample/points/main.ts Outdated Show resolved Hide resolved
ctx.font = '60px sans-serif';
ctx.textAlign = 'center';
ctx.textBaseline = 'middle';
ctx.fillText('🦋', 32, 32);
Copy link
Contributor

Choose a reason for hiding this comment

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

Cute! I never would have thought to use emojis to create a particle texture at runtime!

@greggman greggman merged commit 78309e7 into webgpu:main Mar 11, 2024
1 check passed
@greggman greggman deleted the points branch March 11, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants