1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Remove opacity check from hybridFilter shader.

This commit is contained in:
Sergey Lipskiy 2019-11-28 12:31:31 +07:00
parent 488d52de16
commit f918a909c7

View File

@ -445,10 +445,7 @@ namespace glsl {
" // interpolate first on S direction then on T. \n"
" vec4 top = mix(t00, t10, ratio.s); \n"
" vec4 bottom = mix(t01, t11, ratio.s); \n"
" // only interpolate within texture bounds to avoid sampling black texels \n"
" float is_opaque = step(2.0f, top.a + bottom.a); \n"
" return mix(top, bottom, ratio.t) * is_opaque + \n"
" texel_fetch(tex, rounded_idx, texSize) * (1.0 - is_opaque); \n"
" return mix(top, bottom, ratio.t); \n"
"} \n"
;
return strFilter;