The purpose of this project is to explore using the GPU (WebGL) to calculate particle simulations. Here, the shaders does all the heavy lifting. Particle state data (position, velocity and weight) is all stored as textures in GPU memory.
The above simulation is based on biot savart calculation for magnetic fields. The velocity of a given particle is based on the 'magnetic' field force on that particle by every other particle in the simulation.
To build from source for development:
- Install the latest Node.js and NPM.
- Run
npm install
within the project root directory in Terminal. - Run
npm run dev
.