reaction of the "fake" liquid in the bottle
A single mesh and a raymarch liquid
Hi,
I share with you the realization of a bottle liquid shader.
-
I was inspired and impressed by Half-Life ALYX's booze shader and Gil Dammoiseaux's beer shader.
So I decided to make my own shader in raymarching.
-
technical information :
I'm on Unity URP.
I used shadergraph and a custom HLSL for the raymarch function.
I used second-order operations depending on the velocity of the object to create the wobble effect.
This calculation is done on the CPU and then sent to the gpu.