2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-18 07:25:23 +00:00

GX: fix uploading post transform matrices

This commit is contained in:
2022-03-24 01:03:41 -07:00
parent 9bc0e7f2e6
commit 51a1b6ba9b
4 changed files with 7 additions and 4 deletions

View File

@@ -597,7 +597,7 @@ Range build_uniform(const ShaderInfo& info) noexcept {
if (!info.usesPTTexMtx.test(i)) {
continue;
}
buf.append(&g_gxState.ptTexMtxs[i], 48);
buf.append(&g_gxState.ptTexMtxs[i], 64);
}
if (info.usesFog) {
const auto& state = g_gxState.fog;

View File

@@ -359,7 +359,7 @@ static std::string alpha_compare(GX::Compare comp, float ref, bool& valid) {
case GX::GEQUAL:
return fmt::format(FMT_STRING("(prev.a >= {}f)"), ref);
case GX::GREATER:
return fmt::format(FMT_STRING("(prev.a < {}f)"), ref);
return fmt::format(FMT_STRING("(prev.a > {}f)"), ref);
case GX::ALWAYS:
valid = false;
return "true";