*** empty log message ***

This commit is contained in:
Massimiliano Corsini maxcorsini 2006-10-10 10:55:16 +00:00
parent 394e14f284
commit d0ca6e6860
2 changed files with 3 additions and 6 deletions

View File

@ -6,10 +6,11 @@
// Visual Computing Lab (2006)
//
varying vec3 normal;
varying vec3 vpos;
uniform float shininess;
void main()
{
vec3 n = normalize(normal);
@ -38,7 +39,7 @@ void main()
float RdotV = dot(rVector, viewVector);
if (RdotV > 0.0)
specular = ks * pow(RdotV, gl_FrontMaterial.shininess);
specular = ks * pow(RdotV, shininess);
gl_FragColor = ambient + diffuse + specular;
}

View File

@ -11,10 +11,6 @@ varying vec3 vpos;
void main()
{
vec3 n, lightDir, rVector;
vec4 diffuse = {0.0};
vec4 specular = {0.0};
// vertex normal
normal = normalize(gl_NormalMatrix * gl_Normal);