Smoothed particle hydrodynamics example in Three.js
Simulates the formation of a star with smoothed particle hydrodynamics based on the Python tutorial by Philip Mocz. Uses GLSL shaders to solve the differential equation at each step and then render a particle cloud represented by an InstancedMesh of spheres. Might run a little slow on phones.
Built with three-js-webpack.