GLSL shader that scroll texture
问题 How to scrolling a texture on a plane? So I have a plane with a texture, can I use a shader to scroll left from right (infinite) the texture on it? 回答1: Setup the texture wrapping mode using glTexParameteri(TextureID, L_TEXTURE_WRAP_S, GL_REPEAT) Add the float uniform named Time to your texturing shader Use something like texture2D(sampler, u + Time, v) while fetching texture sample. Update the Time uniform using some timer in your code. Here's a GLSL shader: /*VERTEX_PROGRAM*/ in vec4 in