Skip to content

yp3y5akh0v/MetaBalls2DShading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaBalls2DShading

Metaballs shading in 2D w/ physics

Alt Text

This project was built using Unity (game engine), Cg shader and metaballs. Support physics which was written from scratch: gravity, friction forces. For fun stuff I added also 4 properties for metaballs: mass absorbing/desorbing rate, radius compression/expansion rate. Enjoy!

How to play

  • Use +/- numpad to add/remove metaball
  • Use Inspector to control metaball's properties
  • Use shader to manipulate pixel color

In case if you don't have numpad from your keyboard pls refer to the InputHandler function