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:
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user