'''Originally Posted By: aejenner'''
Andrew Jenner<br>Jonatan Lopez<br><br>PRACTICE FINAL QUESTION #5:<br>Briefly explain how z-buffering is used to determine how a pixel draws on the screen.<br><br>A z-buffer extends the framebuffer's color information for a pixel on the screen with depth information with a &quot;current depth&quot; value. When a new triangle tries to set the color of a pixel, we first compare it depth value for that pixel with the depth value in the z-buffer. We only overwrite the color and depth info, if the triangle's depth is closer than the existing depth for that pixel. This solves the problem painters' algorithms try to fix.