Hello again! In short, I want to know if there is a way to make certain things always draw on top of the other objects (specifically the hud). I'd also have a problem if the background(when I add it) is drawn over the game field instead of behind it, which is why I need to know how to control draw order.
How may I control draw order?
Comments
Got it working, thanks!
A camera always look up the Z axis, ie. the bigger the Z values are, the further they are from the camera.
If you have a Camera which position has Z = 10, and a Near = 2, Far = 100, then all the rendered objects have a Z that satisfy:
12 < Z <= 102. Or, explicitly, CamZ + CamNear < Z <= CamZ + CamFar.
You can only use positive values for CamNear/CamFar.
Right now, my camera has a Z of -1 and a FrustrumFar of 1, and the default FrustrumNear.
What exactly do these three values do?
0
It defines the frustum of the camera, ie the portion of space seen by the camera that verifies the equation written earlier.