Sign in to follow this  
7Days

Texture, glTexParameter

Recommended Posts

7Days    122
Hi, I would like to know if there are other option than GL_NEAREST, and GL_LINEAR that I can use in the functionglTexParameter. I would like to use more accurate options, such as bilinear if it is possible.

Share this post


Link to post
Share on other sites
deavik    570
Quote:
Original post by 7Days
Hi,

I would like to know if there are other option than GL_NEAREST, and GL_LINEAR that I can use in the functionglTexParameter.

GL_LINEAR is bilinear interpolation, across a 2x2 array of texels (for 2D textures).

If you specify mipmap LODs you can sample from adjacent levels of detail as well by using options such as GL_LINEAR_MIPMAP_LINEAR - this produces fantastic quality during minification. Additionally anisotropis filtering may also be used for anisotropic filtering.

Also, take a look at the man page entry here - all possible settings are given and explained.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this