So I am making a simple game in which you control a beer glass sliding along a bar avoiding obstacles, and I am trying to come up with a way of rendering a realistic pint, preferably with refraction, bubbles, etc, but for now, I am just trying to use two transparent objects (the beer will eventually get a diffuse map applied too).
The problem at the moment is that I can't seem to control the render order of the objects so the beer always appears inside the glass, it only appears through the glass from a low angle, so it appears in the reflection, but not from the angle which the game will be played from. For the glass I am using one of the hard surface shaders from here: https://www.assetstore.unity3d.com/#/content/729
and for the beer I am using a default unity transparent material, although the issue also happens with any trans material.
Firstly, if someone can help me ensure this renders correctly from all angles, that would be great.
Second, if someone can come up with a better way to make a glass of beer in unity, that looks really, REALLY good, that would be so awesome you have no idea! ;P
Thanks for any and all help in advance!
-WBC
beer glass from top
![beer glass from top][1]
from top without wood
![from top without wood][2]
beer glass from below
![beer glass from below][3]
[1]: http://i.imgur.com/AmXynM7.png
[2]: http://i.imgur.com/NJ7Kise.png
[3]: http://i.imgur.com/8hxu0A7.png
↧