make lava slowly move over time
This commit is contained in:
1 parent
b1163044b8
commit
b785304adf
2 files changed
+9
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user