o
odin.langpkg.dev
packages / library / myballs

myballs

1bc1e4flibrary

Simple metaballs fragment shader and simulation in Odin lang and raylib

No license · updated 9 months ago

myballs

myballs is a lightweight GPU fragment shader toy that renders dynamic metaballs based on proximity and blending. It's built for fun, visual experimentation, and possibly giggles.

By default, the balls are rendered with randomized vibrant colors, but grayscale will give a more pronounced effect for visualizing proximity blending (aka the "metaballiness").

Build and Run

Make sure you have Odin installed.

odin build .
./myballs

Controls

D — Toggle debug view (shows influence circles)

Left Mouse Button — Explode the balls (scatter effect)

Right Mouse Button — Attract my balls (gravity toward cursor)

Preview

Preview GIF


Made with circles, shaders, and questionable naming choices.