git-svn-id: svn://qnap.local/TwoTerm/trunk@1888 5590a31f-7b70-45f8-8c82-aa3a8e5f4507

This commit is contained in:
Kelvin Sherlock
2010-12-20 23:37:02 +00:00
parent 53d6e2db54
commit 98e13cb172
18 changed files with 929 additions and 623 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ kernel vec4 scanline(sampler image, float opacity)
// isOdd == 0 --> return pixel
// isOdd == 1 --> return pixel * opacity
float multiplier = compare(isOdd - 1.0, 1.0, opacity);
//float multiplier = compare(isOdd - 1.0, 1.0, opacity);
float multiplier = isOdd == 0.0 ? 1.0 : opacity;
return pixel * multiplier;
}