Filtering a Texture with Four Nearby Samples

Bilinear texture filtering combines nearby samples according to the location inside their cell, under the texture's coordinate convention.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace halfway between samples
  2. Check wrap and color handling

Trace halfway between samples

At the center of four linearly encoded values \(1,3,5,7\), the result is four. At a corner the exact selected sample is returned under this interpolation. See bilinear interpolation.

Check wrap and color handling

At a texture edge, the four referenced locations depend on the boundary mode. Mixing encoded colors may have separate constraints. See linear light.[1]

References

  1. Matt Pharr, Wenzel Jakob and Greg Humphreys, Physically Based Rendering ↩