Choosing a Visible Sample with a Depth Buffer
A depth buffer keeps a comparison value for a pixel so a nearer covered surface can replace a farther one under the configured convention.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace two fragments
If smaller depth is closer, a stored depth of 0.7 is replaced by a covering fragment at 0.3. A later 0.9 fragment leaves the nearer sample in place. Ordered thresholds describe why equality policy matters.
Check coordinate normalization
The buffer's numeric depth convention can differ across renderers. Use the actual projection and comparison when verifying a fixture. See perspective depth.[1]