Jump to content
This Topic

Recommended Posts

Posted

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

Whuts wroong?

Posted
  On 1/8/2012 at 3:35 PM, Aily said:

TextureFilter(tex,TEXFILTER_SMOOTH) ?

 

tyvm that worked =)

the one i now use is TEXFILTER_PIXEL, that one seems to be the GL_NEAREST one =)

Whuts wroong?

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...