-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Examples: Add webgpu_compute_particles_fluid #31148
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
Conversation
Fix formatting.
The ambient occlusion post-processing seems to be a performance killer when zoomed-in. It also makes little visual difference. How would you feel about removing it? |
__
Thought the same already, especially on mobile it's a performance killer. But it helps giving some depth to the visuals. Maybe not remove it, but just disable it by default? |
I would avoid including a feature that diminishes performance for marginal benefit. So my preference would be to remove it. I'd hate for something to detract from this excellent demo. |
@holtsetio This would be very suitable to implement spray in my WebGPU Ocean repo. |
* begin work on webgpu_compute_particles_fluid * add mouse interaction * cleanup, add rounded box constraints, add ao, improve stability * removing `.setPBO()` * Update webgpu_compute_particles_fluid.html Fix formatting. ---------
* begin work on webgpu_compute_particles_fluid * add mouse interaction * cleanup, add rounded box constraints, add ao, improve stability * removing `.setPBO()` * Update webgpu_compute_particles_fluid.html Fix formatting. ---------
Description
This adds an interactive MLS-MPM based particle fluid simulation as a compute shader heavy example for TSL, using atomics, nested loops, structs, etc. Unfortunately it will only work in WebGPU, not with the WebGL Fallback.
Possible improvements:
live example