Sunset Lake Software - Comments for "Doubts about Color Tracking example code" http://www.sunsetlakesoftware.com/forum/doubts-about-color-tracking-example-code Comments for "Doubts about Color Tracking example code" en In the ColorObjectTracking http://www.sunsetlakesoftware.com/forum/doubts-about-color-tracking-example-code#comment-1454 <p>In the ColorObjectTracking example, look at the Threshold.fsh fragment shader, which is what does the color replacement in this case. The simplest way to modify this shader to do what you want is to replace the vec4(1.0) vector in the last ternary operator within the maskPixel() function with a vec4 containing your target color. For red, that would be vec4(1.0, 0.0, 0.0, 1.0).</p> pubDate Sun, 17 Jun 2012 00:54:33 +0000 dc:creator Brad Larson guid false comment 1454 at http://www.sunsetlakesoftware.com