Remove the u_forceAlpha

It's unused nowadays.
This commit is contained in:
Martin Gräßlin 2013-05-23 09:30:20 +02:00
parent 769c746a06
commit 95656c3936

View file

@ -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 ));