Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Render a Fluid behind a 2D object
#1
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.
Reply