Obi Official Forum

Full Version: How to Render a Fluid behind a 2D object
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to fill a glass container (2D) and also have a label that sits in front of the fluid (ie. soda bottle with a label). The issue is that the fluid is being rendered over the label even when I move the label closer to the camera (ie. change z position). I am using sprite renderer objects with sorting layers (ie. 1 = bottle, 2 = label), if that helps.


UPDATE:

I had to adjust the main camera's clipping planes which seemed to work.