| Improves visual quality by reducing visual artifacts (called the "Z-fighting" or stitching effect) that may occur with overlapping models. The scene is prerendered in the depth buffer, without rendering any colors. The depth buffer is a simple 2D image containing depth values of an individual pixel on screen. It is used for comparing the current pixel's depth value with the value already present in the buffer, before deciding to overwrite it. Once the depth values have been retrieved, the scene is rendered again and: - A bias is added to the computed z-values.
- Comparisons are made, but nothing is written to the depth buffer. Color values that fail the comparison are overlapped.
Visual flickering is thus significantly reduced by overlapping zones. However, there is a price to pay in performance because the frame rate is decreased. The bigger the model, the more significant the decrease.
|