summaryrefslogtreecommitdiff
path: root/terrain_fragment.glsl
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-04-09 20:22:13 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-04-09 20:22:13 +0200
commit3817acdb49d775edb23fafbed70095be8f648ed6 (patch)
tree088d94ebd9f767e84263e1400db336930a7324cd /terrain_fragment.glsl
parente19c3838a4d89fb0640ed563ffdf58cd125cde7f (diff)
Terrain multitexturing.
Diffstat (limited to 'terrain_fragment.glsl')
-rw-r--r--terrain_fragment.glsl11
1 files changed, 0 insertions, 11 deletions
diff --git a/terrain_fragment.glsl b/terrain_fragment.glsl
deleted file mode 100644
index 774bfd3..0000000
--- a/terrain_fragment.glsl
+++ /dev/null
@@ -1,11 +0,0 @@
-varying vec3 normal, light_pos;
-
-uniform sampler2D tex;
-
-void main() {
- vec3 n = normalize(normal);
- float diffuse = max(dot(n, light_pos), 0.0);
- gl_FragColor = texture2D(tex, gl_TexCoord[0].st) * diffuse;
-}
-
-/* vim: set syn=glsl: */