From a407f8b9edbc7a6e865b2daf65b2a6cd10edd2d7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 15 Dec 2009 22:42:49 +0100 Subject: Added movement controls --- shader/default.frag | 1 - shader/default.vert | 8 -------- 2 files changed, 9 deletions(-) (limited to 'shader') diff --git a/shader/default.frag b/shader/default.frag index b39b46d..e2acad0 100644 --- a/shader/default.frag +++ b/shader/default.frag @@ -2,7 +2,6 @@ uniform sampler2D tex; varying vec4 diffuse, ambientGlobal, ambient; varying vec3 normal, pos; -/*varying vec3 normal, lightVector, reflectVector, eyeVector;*/ void main() { diff --git a/shader/default.vert b/shader/default.vert index 133c871..00b8118 100644 --- a/shader/default.vert +++ b/shader/default.vert @@ -1,22 +1,14 @@ varying vec4 diffuse, ambientGlobal, ambient; varying vec3 normal, pos; -/*varying vec3 normal, lightVector, reflectVector, eyeVector;*/ void main() { normal = normalize(gl_NormalMatrix * gl_Normal); pos = vec3(gl_ModelViewMatrix * gl_Vertex); - /*lightVector = vec3(gl_LightSource[0].position - ecPos); - reflectVector = normalize(reflect(-lightVector, normal)); - eyeVector = vec3(-ecPos);*/ - - /* Compute the diffuse, ambient and globalAmbient terms */ diffuse = gl_FrontMaterial.diffuse * gl_LightSource[0].diffuse; - /* The ambient terms have been separated since one of them */ - /* suffers attenuation */ ambient = gl_FrontMaterial.ambient * gl_LightSource[0].ambient; ambientGlobal = gl_LightModel.ambient * gl_FrontMaterial.ambient; -- cgit v1.2.3