An Interactive Introduction to OpenGL Programming
An Interactive Introduction to OpenGL Programming
An Interactive Introduction to OpenGL Programming
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Mapping a Texture<br />
• Based on parametric texture coordinates<br />
• glTexCoord*() specified at each vertex<br />
t<br />
0, 1<br />
Texture Space<br />
a<br />
1, 1<br />
Object Space<br />
(s, t) = (0.2, 0.8)<br />
A<br />
b<br />
c<br />
0, 0 1, 0<br />
s<br />
(0.4, 0.2)<br />
B<br />
C<br />
(0.8, 0.4)