1/6
Flashcards about Texture Mapping
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
glActiveTexture
A function used to select one of the texture units. After it is selected, glBindTexture can be used to associate a texture with the texture unit.
glUniform1i
Used to assign the texture unit number to a uniform sampler variable in a shader.
Procedural texture
Instead of storing an image, this is a procedure used to generate a texture value when it’s needed.
Normal map (Bump map)
Modify the normal vector before it is used to compute the colour of the pixel to produce bumpy looking surfaces.
Environment Map
A variation where there are 6 textures, two for each coordinate plane in the positive and negative directions.
Box Map
Either the normal vector at the vertex, or the vector from the center of the object to the vertex are used as texture coordinates.
FreeImage
A library that is very good at basic image manipulation.