From Ohm
Interpolation mode of the 2D texture:
filter type | filter effect |
---|---|
GL_LINEAR | bilinear interpolation |
GL_NEAREST | nearest neighbor (no interpolation) |
GL_LINEAR_MIPMAP_LINEAR | bilinear interpolation with mipmapping |
GL_NEAREST_MIPMAP_NEAREST | nearest neighbor with mipmapping |
Extrapolation mode of the 2D texture:
coordinate mapping | effect |
---|---|
GL_CLAMP | nearest border color is extended to outside |
GL_REPEAT | inside color is repeated as tile pattern |
Der Textur Modus der 2D Textur wird spezifiziert via:
Mode of combining vertex color attribute with texture color:
texturing mode | vertex color is modified by texture color via |
---|---|
GL_REPLACE | replace vertex color with texture color |
GL_DECAL | linear interpolation with texture alpha |
GL_MODULATE | componentwise multiplication |
GL_BLEND | componentwise linear interpolation |
Example with red vertex color, blue texture color, partially semi-transparent texture and texture coordinate repetition:
Initially, texture mapping ist disabled in OpenGL. It is enabled with:
More details in chapter #9 of the OpenGL Programming Guide [1]
Retrieved from http://schorsch.efi.fh-nuernberg.de/roettger/index.php/MedicalVisualization/TextureFiltering
Page last modified on November 07, 2017, at 04:16 PM