Guide to Game Development/Theory/Miscellaneous theory/Depth buffer

About

edit

A depth buffer ensures that items are drawn in the correct order. It's a list of all of the items that need to be drawn to the scene, and it puts them in the order of how close they are to the camera.

 
This is an example of a scene rendered with no depth buffer.

References

edit