Soft Drink is a small experiment in rendering realistic refraction through a glass bottle and the liquid inside it. Light bends at every surface it crosses: the outside of the glass, the inside, the liquid, and back out again. To capture this, the bottle's layers are traced with a multi-layer screen-space ray marching approach. Drag the bottle to bend and turn it, or leave it alone and watch it sway gently to the music.
Credits:
Experiment made by robert.leitl.dev