Projective textures [92] use texture coordinates which are computed as the result of a projection. The result is that the texture image can be subjected to a separate independent projection from the viewing projection. This technique may be used to simulate effects such as slide projector or spotlight illumination, to generate shadows, and to reproject a photograph of an object back onto the geometry of the object. Several of these techniques are described in more detail in later sections of these notes.
OpenGL generalizes the two component texture coordinate (,
)
to a four-component homogeneous texture coordinate
(
,
,
,
). The
coordinate is analogous to
the
component in the vertex coordinates. The
coordinate is
used for three dimensional texturing in implementations that support that
extension and is iterated in manner similar to
and
. OpenGL provides
default values for
(0) and
(1). The
addition of the
coordinate adds very little extra work to the usual
texture mapping process. Rather than iterating (
,
,
)
and dividing by 1/
at each pixel, the division becomes a division by
/
. Thus, in implementations that perform perspective correction
there is no extra rasterization burden associated with processing
.