Hello, I’m quite new to opengl, and I would like to know is there a way to sample the same texture using different filter mode. I’m currently using glTexParameteri to specify filter mode. But it seems like that filter mode is property of a texture, not a sampler, thus this piece of code does not behave like I’d expect:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
seems like the last call to glTexParameteri overwrites filter mode for the GL_TEXTURE0_ARB texture stage.