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

Examples: Add Compute Attractors Particles #28983

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

brunosimon
Copy link
Contributor

Description

Adds WebGPU/TSL compute attractors particles example.

I don't use the delta for the animation to get a consistant result across different frame rates.
In other words: different speed but same shape.
Yet, I kept the version with delta commented in the code.

// const delta = timerDelta().mul( timeScale ).min( 1 / 30 ).toVar();
const delta = float( 1 / 60 ).mul( timeScale ).toVar(); // uses fixed delta to consistant result

I added the screenshot to the exceptions since I can't generate one that works with the tests.

localhost_8083_examples_webgpu_tsl_compute_attractors_particles html

@sunag sunag added this to the r168 milestone Jul 26, 2024
@sunag sunag merged commit ee05284 into mrdoob:dev Jul 26, 2024
11 checks passed
brunosimon added a commit to brunosimon/three.js that referenced this pull request Jul 28, 2024
* Examples: Add Compute Attractors Particles

* Examples: Compute Attractors Particles: Remove unsued import

* clean up
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