From 95656c39366278ff2f246181c63711478574fe90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 23 May 2013 09:30:20 +0200 Subject: [PATCH] Remove the u_forceAlpha It's unused nowadays. --- effects/invert/data/invert.frag | 5 ----- 1 file changed, 5 deletions(-) diff --git a/effects/invert/data/invert.frag b/effects/invert/data/invert.frag index 3cf809db52..a9e1201460 100644 --- a/effects/invert/data/invert.frag +++ b/effects/invert/data/invert.frag @@ -1,7 +1,6 @@ uniform sampler2D sampler; uniform vec4 modulation; uniform float saturation; -uniform int u_forceAlpha; varying vec2 varyingTexCoords; @@ -9,10 +8,6 @@ void main() { vec4 tex = texture2D(sampler, varyingTexCoords); - if (u_forceAlpha > 0) { - tex.a = 1.0; - } - if (saturation != 1.0) { vec3 desaturated = tex.rgb * vec3( 0.30, 0.59, 0.11 ); desaturated = vec3( dot( desaturated, tex.rgb ));