sgsrules's picture

Anisotropic Filtering in OpenGL 3.2

I used to use Anisotropic filtering but can't figure out where the GL_TEXTURE_MAX_ANISOTROPY_EXT enum is in opentk.

glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, maxAnisotropy);


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sgsrules's picture

Nevermind I found it =P

In case anyone else gets lost:

 float maxAniso;
 GL.GetFloat((GetPName) ExtTextureFilterAnisotropic.MaxTextureMaxAnisotropyExt, out maxAniso);
  GL.TexParameter(TextureTarget.Texture2D, (TextureParameterName) ExtTextureFilterAnisotropic.TextureMaxAnisotropyExt, maxAniso);
ZTK's picture

Thanks, I was looking for this!