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.glsl5
1 files changed, 2 insertions, 3 deletions
diff --git a/shaders/terrain_vertex.glsl b/shaders/terrain_vertex.glsl
index e53c432..5fcd17b 100644
--- a/shaders/terrain_vertex.glsl
+++ b/shaders/terrain_vertex.glsl
@@ -1,12 +1,11 @@
#version 120
-varying vec3 normal, light_pos;
-varying float y;
+varying vec3 normal, light_pos, pos;
void main() {
normal = gl_Normal;
light_pos = vec3(0, 1, 0);
- y = gl_Vertex.y;
+ pos = gl_Vertex.xyz;
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;