Fix modulation in Invert effect

Thanks to Kevin for spotting and providing a fix.

BUG: 322013
FIXED-IN: 4.11
This commit is contained in:
Martin Gräßlin 2013-07-08 08:31:51 +02:00
parent 93ca1c4396
commit 71940e879d
2 changed files with 2 additions and 2 deletions

View file

@ -14,8 +14,8 @@ void main()
tex.rgb = tex.rgb * vec3( saturation ) + desaturated * vec3( 1.0 - saturation ); tex.rgb = tex.rgb * vec3( saturation ) + desaturated * vec3( 1.0 - saturation );
} }
tex *= modulation;
tex.rgb = vec3(1.0) - tex.rgb; tex.rgb = vec3(1.0) - tex.rgb;
tex *= modulation;
tex.rgb *= tex.a; tex.rgb *= tex.a;
gl_FragColor = tex; gl_FragColor = tex;

View file

@ -17,8 +17,8 @@ void main()
tex.rgb = tex.rgb * vec3( saturation ) + desaturated * vec3( 1.0 - saturation ); tex.rgb = tex.rgb * vec3( saturation ) + desaturated * vec3( 1.0 - saturation );
} }
tex *= modulation;
tex.rgb = vec3(1.0) - tex.rgb; tex.rgb = vec3(1.0) - tex.rgb;
tex *= modulation;
tex.rgb *= tex.a; tex.rgb *= tex.a;
fragColor = tex; fragColor = tex;