set the texture for by glUniform1i March 30, 2023 by Tarik Yes, you are correct. The uniform value for a sampler refers to the texture unit, not the texture id.