Z-Buffer (Depth Buffer)

*Z-Buffer has memory corresponding to each pixel location. Usually ~16 to 20 bits/location.

Initialize: * Each z-buffer location <- Max z value
* Each frame buffer location <- background color
For each polygon:
* Compute z(x,y), polygon depth at the pixel (x,y)
* If z(x,y) < z buffer value at pixel (x,y) then
* z buffer(x,y) <- z(x,y)
* pixel(x,y) <- color of polygon at (x,y)