are many different ways texturing can be configured. Texture parameters affect
the rendering rules and behaviours of texture maps as they are applied. Texture
set for the currently bound texture object.
way to set texture parameters is to use glTexParameter**calls.
preferred way) is
to us a sampler
A sampler object stores sampling parameters for a
texture inside a shader. It provides a more efficient way to set texturing
parameters than glTexParameter**
Note: a sampler
used to configure texture mapping parameters.
It is different from a sampler,
which is a datatype used in GLSL to access texels.