Browse Source

nice holes

legacy
jeunathe jnat 12 years ago
parent
commit
169c6da480
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tutorial/04_texture.lolfx

+ 2
- 2
tutorial/04_texture.lolfx View File

@@ -9,7 +9,7 @@ varying vec4 pass_Position;
void main(void) void main(void)
{ {
pass_Position = vec4(0.5 * in_Position + 0.5, 0.0, 1.0); pass_Position = vec4(0.5 * in_Position + 0.5, 0.0, 1.0);
gl_Position = vec4(in_Position, 0.0, 1.0);
gl_Position = vec4(in_Position, 0.5, 1.0);
} }


[frag.glsl] [frag.glsl]
@@ -40,7 +40,7 @@ void main(void)
else else
gl_FragColor = vec4(0.4, t.y, val, 1.0); gl_FragColor = vec4(0.4, t.y, val, 1.0);
} }
else if (t.y > c0.x - 0.02)
else if (t.y > c0.x - 0.03)
{ {
/* Grass */ /* Grass */
if (f > 0.99) if (f > 0.99)


Loading…
Cancel
Save