Jump to content

how to get GL_NEAREST for a texture?


AnniXa
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...