myociss / threejs-star-sph

Smoothed particle hydrodynamics with Three.js and GLSL

Home Page:https://myociss.github.io/threejs-star-sph/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Smoothed particle hydrodynamics with Three.js and GLSL

https://myociss.github.io/threejs-star-sph/


Languages

Language:JavaScript 55.2%Language:HTML 38.5%Language:CSS 6.2%