Skip to content

lokegustafsson/marble-gravity

Repository files navigation

This fun toy simulates a bunch of semitransparent, reflective marbles under gravity and partially inelastic collisions!

Configuration is done by editing constants (and the ray recursion depth in the fragment shader) and recompiling.

The default for nix run is to start a local webserver. Marble Gravity works through webgl2, kind of. It works on some people's computers in firefox. I should revisit once webgpu is a(n established) thing.

Some screenshots:

About

Let's put my GPU to work with some basic raytracing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published