AnniXa Posted January 8, 2012 Share Posted January 8, 2012 hi =) I would like to use the nearest texture filter, how can i get this texture parameters for a materials texture? glTexParameteri GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST glTexParameteri GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST or if this is not possible via the material file/functions, how can i acces a specific texture to bind it and make those settings? ty for your time =) all i found was this: material.GetTexture(0).reference.filter but changing that value has no result Quote Whuts wroong? Link to comment Share on other sites More sharing options...
Aily Posted January 8, 2012 Share Posted January 8, 2012 TextureFilter(tex,TEXFILTER_SMOOTH) ? Quote "Better" is big enemy of "good" Link to comment Share on other sites More sharing options...
AnniXa Posted January 8, 2012 Author Share Posted January 8, 2012 TextureFilter(tex,TEXFILTER_SMOOTH) ? tyvm that worked =) the one i now use is TEXFILTER_PIXEL, that one seems to be the GL_NEAREST one =) Quote Whuts wroong? Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.