summaryrefslogtreecommitdiff
path: root/terrain_vertex.glsl
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-04-02 15:52:24 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-04-02 15:52:24 +0200
commitfe2df4b280ecd8417cc267b8fc05ec050054ec4c (patch)
tree92500ef700f14c6bd0ca0840c9c98d3b20e72415 /terrain_vertex.glsl
parente172cde8c082fa3e338b3eb11079b36952874936 (diff)
Finished terrain lighting.
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;
}