I am trying to add pipes with fluids in it.
I render my pipes in the tile entity special renderer and i tried to draw the fluids there too.
But OpenGL doesn't render the depth correctly, at some points my pipes are not getting rendered behind the water (see image).
I think i did everything right, but i need to change some OpenGL settings.
Source: https://gist.github.com/RythenGlyth/edcead40fecea893dd48da1cec05ecb2
Thanks in advance