BitmapBlitShader: Try a bit harder

It's not really perfect yet, but it looks a lot closer
to what was there before.
This commit is contained in:
Jonas Kulla 2013-10-22 06:40:24 +02:00
parent 765fd55bce
commit 906f9fae17
1 changed files with 1 additions and 2 deletions

View File

@ -27,8 +27,7 @@ void main()
float at = ab*as;
resFrag.a = at + ad - ad*at;
resFrag.rgb = mix(dstFrag.rgb, srcFrag.rgb, ab*as);
resFrag.rgb = mix(srcFrag.rgb, resFrag.rgb, ad*resFrag.a);
resFrag.rgb = as*srcFrag.rgb + (1-at) * ad * dstFrag.rgb;
gl_FragColor = resFrag;
}