Flat and Interpolated Triangle Attributes

A renderer can keep one attribute constant across a face or compute values from the vertices under an interpolation rule.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a simple triangle
  2. Account for perspective when applicable

Trace a simple triangle

If vertex intensities are 0, 0, and 1, their equal-weight point has interpolated intensity one third. A flat face assignment could give every point some chosen constant. Barycentric weights describe the interpolation.

Account for perspective when applicable

A linear interpolation in projected coordinates may not preserve the intended relation in scene space. Verify texture or attribute values under the renderer's convention. See perspective projection.[1]

References

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