Shader based fake liquid “Simulation”

A colleague happened to share a tweet by Ryan Bucks, who was working on some pretty impressive shader stuff to emulate bubbling liquid in a bottle
I find myself doing shader work quite a often these days and felt quite inspired to make use of a rainy Saturday afternoon to see how far I’d get, when having a stab at a realtime effect of the same nature.

Well and to not build some not so gratifying tension arc, this is what came out of it after a couple of hours work.

I’ve been asked by several people to do a write up on the principles of this. I’ll hopefully get around to this in the next couple of days, so keep your brain cells peeled.