From: michal Date: Sat, 27 Oct 2007 17:42:20 +0000 (+0100) Subject: Fix fragment shader. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1b4285c5cb03e52850751c2f74d131e2b7a00c8;p=mesa.git Fix fragment shader. --- diff --git a/progs/demos/arbfslight.c b/progs/demos/arbfslight.c index d6363eafeb2..a84491d34fe 100644 --- a/progs/demos/arbfslight.c +++ b/progs/demos/arbfslight.c @@ -208,7 +208,7 @@ static void Init (void) " // Compute dot product of light direction and normal vector\n" " float dotProd = max (dot (lightPos, normalize (normal)), 0.0);\n" " // Compute diffuse and specular contributions\n" -#if 0 +#if 1 " gl_FragColor = diffuse * dotProd + specular * pow (dotProd, 20.0);\n" #elif 1 /* test IF/ELSE/ENDIF */ " if (normal.y > 0.0) { \n"