Beer Bottle Shader - Unreal Engine 5

After playing Half-Life: Alyx and being inspired by Ryan Brucks, I decided to start my own liquid bottle project in Unreal. I want to challenge myself to only use *opaque material model* and *single layer Nanite mesh* without simulation. But I cannot figure out some crucial problems at first, which makes the journey pretty bumpy. Therefore, I postponed the project for a while, and got back to it recently and solved them.
-
Since the shader is pure opaque, everything in the bottle is 'fake'. A blueprint is set up to get the movement info and send them to the material. The liquid level height is baked into a texture based on the bottle shape and scale, so no matter how the bottle is rotated, the level will always stay at the physically accurate place. The reflections of the liquid surface, the backs of the labels, the cap, and the bottom are all calculated using custom coordinates.
The Corona bottle mesh is downloaded from xtremelifestylx in Sketchfab.
The HDRI map is from Poly Haven
-
Hope you like it. Cheers.