make lava slowly move over time

This commit is contained in:
josh committed 2012-09-21 22:05:22 -04:00
1 parent b1163044b8
commit b785304adf
2 files changed
+9 -2

No files matched your search

+3 -1
View File
@@ -1,9 +1,11 @@
uniform sampler2D tex;
uniform float shift;
varying vec2 tex_coord_i;
void main(void)
{
gl_FragColor = texture2D(tex, tex_coord_i);
vec2 tex_coord = vec2(tex_coord_i.s + shift, tex_coord_i.t);
gl_FragColor = texture2D(tex, tex_coord);
}