




































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





































Docsity.com
Docsity.com
From Jim X. Chen, [email protected] Docsity.com
From Tomas Akenine-Moller Docsity.com
Controlling Filtering
Docsity.com
From Tomas Akenine-Moller Docsity.com
From Tomas Akenine-Moller Docsity.com
From Tomas Akenine-Moller Docsity.com
From Tomas Akenine-Moller
Docsity.com
Repeating and Clamping Textures
From Jim X. Chen, [email protected] Docsity.com
glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_S_WRAP GL_REPEAT);
glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_T_WRAP GL_REPEAT);
or
glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_S_WRAP GL_CLAMP);
glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_T_WRAP GL_CLAMP);
You can also clamp in one direction and repeat in the other.
From Jim X. Chen, [email protected] Docsity.com
Docsity.com
Assigning Texture Coordinates
void glTexCoord{1234}{sifd}{v}(TYPEcoords);
From Jim X. Chen, [email protected] Docsity.com
From Jim X. Chen, [email protected] Docsity.com