add lava GLSL program and render lava floor

This commit is contained in:
josh committed 2012-09-21 21:43:04 -04:00
1 parent 76e9390437
commit 1f80d8e870
4 files changed
+94 -10

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
uniform sampler2D tex;
varying vec2 tex_coord_i;
void main(void)
{
gl_FragColor = texture2D(tex, tex_coord_i);
}
+14
View File
@@ -0,0 +1,14 @@
uniform mat4 projection;
uniform mat4 modelview;
attribute vec3 pos;
attribute vec2 tex_coord;
varying vec2 tex_coord_i;
void main(void)
{
gl_Position = projection * modelview * vec4(pos, 1);
tex_coord_i = tex_coord;
}