add lava GLSL program and render lava floor
This commit is contained in:
1 parent
76e9390437
commit
1f80d8e870
4 files changed
+94
-10
No files matched your search
@@ -0,0 +1,9 @@
|
||||
|
||||
uniform sampler2D tex;
|
||||
|
||||
varying vec2 tex_coord_i;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
gl_FragColor = texture2D(tex, tex_coord_i);
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user