Bilinear Filtering - Special Cases

Special Cases

Textures aren't infinite, in general, and sometimes one ends up with a pixel coordinate that lies outside the grid of texel coordinates. There are a few ways to handle this:

  • Wrap the texture, so that the last texel in a row also comes right before the first, and the last texel in a column also comes right above the first. This works best when the texture is being tiled.
  • Make the area outside the texture all one color. This may be of use for a texture designed to be laid over a solid background or to be transparent.
  • Repeat the edge texels out to infinity. This works best if the texture is not designed to be repeated.

Read more about this topic:  Bilinear Filtering

Famous quotes containing the words special and/or cases:

    I think those Southern writers [William Faulkner, Carson McCullers] have analyzed very carefully the buildup in the South of a special consciousness brought about by the self- condemnation resulting from slavery, the humiliation following the War Between the States and the hope, sometimes expressed timidly, for redemption.
    Jimmy Carter (James Earl Carter, Jr.)

    You all know that even when women have full rights, they still remain fatally downtrodden because all housework is left to them. In most cases housework is the most unproductive, the most barbarous and the most arduous work a woman can do. It is exceptionally petty and does not include anything that would in any way promote the development of the woman.
    Vladimir Ilyich Lenin (1870–1924)