summaryrefslogtreecommitdiff
path: root/terrain_vertex.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'terrain_vertex.glsl')
-rw-r--r--terrain_vertex.glsl7
1 files changed, 0 insertions, 7 deletions
diff --git a/terrain_vertex.glsl b/terrain_vertex.glsl
index 25b0c25..8bb21d0 100644
--- a/terrain_vertex.glsl
+++ b/terrain_vertex.glsl
@@ -2,16 +2,9 @@ varying vec3 normal, light_pos, V, N;
varying vec4 diffuse, ambient;
void main() {
- V = vec3(gl_ModelViewMatrix * gl_Vertex);
- N = normalize(gl_NormalMatrix * gl_Normal);
-
normal = gl_Normal;
light_pos = vec3(0, 1, 0);
- diffuse = gl_FrontMaterial.diffuse * gl_LightSource[0].diffuse;
- ambient = gl_FrontMaterial.ambient * gl_LightSource[0].ambient;
-
- gl_FrontColor = gl_Color;
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}