summaryrefslogtreecommitdiff
path: root/shaders/terrain_vertex.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/terrain_vertex.glsl')
-rw-r--r--shaders/terrain_vertex.glsl15
1 files changed, 15 insertions, 0 deletions
diff --git a/shaders/terrain_vertex.glsl b/shaders/terrain_vertex.glsl
new file mode 100644
index 0000000..e53c432
--- /dev/null
+++ b/shaders/terrain_vertex.glsl
@@ -0,0 +1,15 @@
+#version 120
+
+varying vec3 normal, light_pos;
+varying float y;
+
+void main() {
+ normal = gl_Normal;
+ light_pos = vec3(0, 1, 0);
+ y = gl_Vertex.y;
+
+ gl_TexCoord[0] = gl_MultiTexCoord0;
+ gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
+}
+
+/* vim: set syn=glsl: */