projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43eac3
)
remove debug code
author
Brian
<brian@yutani.localnet.net>
Thu, 18 Jan 2007 22:23:45 +0000
(15:23 -0700)
committer
Brian
<brian@yutani.localnet.net>
Thu, 18 Jan 2007 22:23:45 +0000
(15:23 -0700)
progs/glsl/CH11-toyball.frag.txt
patch
|
blob
|
history
diff --git
a/progs/glsl/CH11-toyball.frag.txt
b/progs/glsl/CH11-toyball.frag.txt
index cf9129ee1da6e2a918ca340be66f56cc093be5e3..90ec1c27fc1824b8ad310df232da1e0eeccd44ae 100644
(file)
--- a/
progs/glsl/CH11-toyball.frag.txt
+++ b/
progs/glsl/CH11-toyball.frag.txt
@@
-45,7
+45,6
@@
void main()
distance[2] = dot(p, HalfSpace2);
distance[3] = dot(p, HalfSpace3);
-#if 1
distance = smoothstep(-FWidth, FWidth, distance);
inorout += dot(distance, vec4(1.0));
@@
-73,7
+72,4
@@
void main()
surfColor += SpecularColor * intensity;
gl_FragColor = surfColor;
-#else
- gl_FragColor = distance;
-#endif
}