projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c22f91
)
Fix fragment shader.
author
michal
<michal@michal-laptop.(none)>
Sat, 27 Oct 2007 17:42:20 +0000
(18:42 +0100)
committer
michal
<michal@michal-laptop.(none)>
Sat, 27 Oct 2007 18:04:19 +0000
(19:04 +0100)
progs/demos/arbfslight.c
patch
|
blob
|
history
diff --git
a/progs/demos/arbfslight.c
b/progs/demos/arbfslight.c
index d6363eafeb25c6fa58891d4907584ec6a38bb32c..a84491d34fea0972d28904b32840e58181b4f92f 100644
(file)
--- 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"