Alpha test cmp logic fix (shovel knight)

This commit is contained in:
tfarley 2015-05-15 18:00:05 -07:00
parent d0a0630a82
commit 3e0d81f04d

View File

@ -330,19 +330,19 @@ void main(void) {
discard;
}
} 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) {
discard;
}
} else if (alphatest_func == COMPAREFUNC_LESSTHANOREQUAL) {
if (g_last_tex_env_out.a > alphatest_ref) {
discard;
}
} 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;
}
} 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;
}
}