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:
parent
765fd55bce
commit
906f9fae17
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue