Fix blending issue with invert effect

Actually it's more a hack and should be addressed in the next
release cycle by allowing effects to modify the scene's blend
equation.
BUG: 274424
FIXED-IN: 4.7.0
This commit is contained in:
Martin Gräßlin 2011-06-02 11:40:20 +02:00
parent 46fdbd26a4
commit 20fdcf06f4

View file

@ -23,6 +23,7 @@ void main()
tex *= modulation;
tex.rgb = vec3(1.0) - tex.rgb;
tex.rgb *= tex.a;
gl_FragColor = tex;
}