summaryrefslogtreecommitdiff
path: root/progs/glsl
diff options
context:
space:
mode:
authorZou Nan hai <nanhai.zou@intel.com>2007-07-17 16:52:03 +0800
committerZou Nan hai <nanhai.zou@intel.com>2007-07-17 16:52:03 +0800
commitc6d042acc94411b63f922ef68f24aa5426c0a69e (patch)
treed855598fd3e6a19289f033f78983686458ddeeb4 /progs/glsl
parent3c00cdc5f37856f303a6256677364ae89200c509 (diff)
Fix SOP in fragment shader, brick is ok now.
Diffstat (limited to 'progs/glsl')
-rw-r--r--progs/glsl/CH06-brick.frag.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/progs/glsl/CH06-brick.frag.txt b/progs/glsl/CH06-brick.frag.txt
index 388c5f9e66..06ef04e3af 100644
--- a/progs/glsl/CH06-brick.frag.txt
+++ b/progs/glsl/CH06-brick.frag.txt
@@ -23,11 +23,7 @@ void main()
position = MCposition / BrickSize;
-// if (fract(position.y * 0.5) > 0.5)
-// position.x += 0.5;
- float tmp;
- tmp = fract(position.y * 0.5);
- if (tmp > 0.5)
+ if (fract(position.y * 0.5) > 0.5)
position.x += 0.5;
position = fract(position);