# GPU Particles 3D Demo compute-shader-driven particle simulation. ```{raw} html ▶ Run in browser ``` **Tags:** `3d` Showcases ``GPUParticles3D``: position, velocity, colour and lifetime live entirely on the GPU; the compute shader (``particle_sim.comp``) runs once per frame and the same billboard pipeline that draws CPU particles renders the result. No per-frame CPU-to-GPU upload of particle state. For CPU emitters (sub-emitters, collision, trails) see ``particles.py``. Run: uv run python examples/features/3d/gpu_particles.py Controls: 1 - Toggle fountain (steady stream, gravity, colour gradient) 2 - Toggle vortex (spherical emission, low gravity) R - Restart all emitters A / D - Orbit camera W / S - Zoom in / out ESC - Quit ## Source ```{literalinclude} ../../examples/features/3d/gpu_particles.py :language: python :linenos: ```