summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-10-27 18:42:20 +0100
committermichal <michal@michal-laptop.(none)>2007-10-27 19:04:19 +0100
commita1b4285c5cb03e52850751c2f74d131e2b7a00c8 (patch)
tree9341116f4e44b436c841600cc194a1ab2418adea /progs
parent9c22f910304de88ea5b0ff9bf0608abf44e86806 (diff)
Fix fragment shader.
Diffstat (limited to 'progs')
-rw-r--r--progs/demos/arbfslight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/demos/arbfslight.c b/progs/demos/arbfslight.c
index d6363eafeb..a84491d34f 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"