<<< Internal texture image format | Index | Texture sampling in GLSL >>> |
How does the shader code accesses the texture object in GPU memory?
GLSL code uses sampler data types to access the texture data
For every OpenGL texture type, there is a corresponding sampler type. For example,
// In fragment shader:
uniform sampler2D texture;
<<< Internal texture image format | Index | Texture sampling in GLSL >>> |