Need help with material based liquid in a container
I've been researching using a material to fake a liquid in a container and there's been some great work done by various people that have all come close to the solution but never quite got there.
The general approach is using the Z plane to drive a mask as shown here:
This method is fine for block colour since it hides the fact there's no surface plane on the liquid due to the nature of the opacity masking, but I'm after a solution which ends up with a surface.
There was also an approach which takes it a step further shown here:
that tried to use world position offset, essentially looking down and finding the silhouette of the object at that point from above then pushing the top verts down but it falls apart when rotating and the approaches I've tried to fix it haven't yielded any results.
I was wondering if anyone has any ideas on how to fix the method shown above or maybe any other approaches to fixing this problem?
asked Mar 13 '18 at 05:34 PM in Rendering
Use local position instead of world position for your calculations.
answered Mar 13 '18 at 10:01 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here