Examples: Add webgpu_compute_particles_fluid#31148
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