iamgreaser / iceball

Open-source rewrite of the VOXLAP version of Ace of Spades.
http://iceball.build
GNU General Public License v3.0
113 stars 32 forks source link

Second buffer for UI stuff #110

Closed dany-on-demand closed 9 years ago

dany-on-demand commented 9 years ago

Currently the tool selection thing plops up in the actual game world, and so is bound to render through blocks, to mitigate this there should be support for a 3d-in-2d alternate buffer for HUD stuff. In other words, a second camera that renders the HUD stuff.

Not for the player/tools mind you, because we might want the spade animation to clip through blocks.

iamgreaser commented 9 years ago

Actually the ideal way to implement this is to just have something like client.clear_depth() which just calls glClear(GL_DEPTH_BUFFER_BIT).

It's simpler than you think.

iamgreaser commented 9 years ago

client.gfx_clear_depth() is a thing now.