Community
I want make some foam over liquid in a cup.using meshes make render time alot(refraction part need more ray).
There is some excellent work related to your question being done (including @Zeno Pelgrims !) over on the current shaders.xyz challenge: http://www.shaders.xyz/forums/topic/challenge-05-beer-foam/. I highly recommend that site for shader hacking, learning and exploration!
awesome site! I will give the foam challenge a try, looks interesting! Some great contributions in there already. Thanks for the link!