25% developed

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

From Wikibooks, open books for an open world
Jump to navigation Jump to search

About[edit | edit source]

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 | edit source]