mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-24 16:41:05 +00:00
Alpha test cmp logic fix (shovel knight)
This commit is contained in:
parent
d0a0630a82
commit
3e0d81f04d
@ -330,19 +330,19 @@ void main(void) {
|
|||||||
discard;
|
discard;
|
||||||
}
|
}
|
||||||
} else if (alphatest_func == COMPAREFUNC_LESSTHAN) {
|
} else if (alphatest_func == COMPAREFUNC_LESSTHAN) {
|
||||||
if (g_last_tex_env_out.a > alphatest_ref) {
|
|
||||||
discard;
|
|
||||||
}
|
|
||||||
} else if (alphatest_func == COMPAREFUNC_LESSTHANOREQUAL) {
|
|
||||||
if (g_last_tex_env_out.a >= alphatest_ref) {
|
if (g_last_tex_env_out.a >= alphatest_ref) {
|
||||||
discard;
|
discard;
|
||||||
}
|
}
|
||||||
|
} else if (alphatest_func == COMPAREFUNC_LESSTHANOREQUAL) {
|
||||||
|
if (g_last_tex_env_out.a > alphatest_ref) {
|
||||||
|
discard;
|
||||||
|
}
|
||||||
} else if (alphatest_func == COMPAREFUNC_GREATERTHAN) {
|
} else if (alphatest_func == COMPAREFUNC_GREATERTHAN) {
|
||||||
if (g_last_tex_env_out.a < alphatest_ref) {
|
if (g_last_tex_env_out.a <= alphatest_ref) {
|
||||||
discard;
|
discard;
|
||||||
}
|
}
|
||||||
} else if (alphatest_func == COMPAREFUNC_GREATERTHANOREQUAL) {
|
} else if (alphatest_func == COMPAREFUNC_GREATERTHANOREQUAL) {
|
||||||
if (g_last_tex_env_out.a <= alphatest_ref) {
|
if (g_last_tex_env_out.a < alphatest_ref) {
|
||||||
discard;
|
discard;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user