Kaydet (Commit) 9629322f authored tarafından Louis-Francis Ratté-Boulianne's avatar Louis-Francis Ratté-Boulianne Kaydeden (comit) Jan Holesovsky

vcl: Fix color-replacement fragment shader

Change-Id: I82a0a45961ea3f0ceca7dab67c8736b5e1205bb0
üst fa83f036
......@@ -18,8 +18,6 @@ void main() {
vec4 diff = clamp(abs(texel - search_color) - epsilon, 0.0, 1.0);
float bump = max(0.0, 1.0 - ceil(diff.x + diff.y + diff.z));
gl_FragColor = texel + bump * (replace_color - search_color);
gl_FragColor.r = 1.0;
gl_FragColor.g = 0.0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment