An open API service indexing awesome lists of open source software.

https://github.com/eugenedevastator/computenbody

Simulating NBody via compute shader
https://github.com/eugenedevastator/computenbody

computeshader nbody nbody-simulation unity

Last synced: about 1 month ago
JSON representation

Simulating NBody via compute shader

Awesome Lists containing this project

README

          

# Compute N-Body
Simulating NBody via compute shader
See "compute" scene.

Quick flow:
1. pass particles as array.
2. calculate forces in 2d texture
3. sum the matrix via fancy parallelization.
4. apply forces.

![image](https://user-images.githubusercontent.com/5610313/163670320-020f2071-3db2-4eb1-ad7d-95df549e7260.png)