Okay guys, I'm having an issue with an object rendering on top of the other when making a shader for a fireball of sorts. I don't understand what goes on.
I have two objects with the same shader. One of them is an elongated hemisphere, for the main fireball, and the other one is a cillinder with no bases, for the trail. I want the fireball to always be rendered on top of the trail, but when the camera is "behind" the object, it renders the trail on top of the fireball. I don't understand why that happens, help please?