Skip to content

myociss/threejs-star-sph

Repository files navigation

threejs-star-sph

Smoothed particle hydrodynamics example in Three.js

About

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.