mirror of https://github.com/AxioDL/metaforce.git
GX: fix uploading post transform matrices
This commit is contained in:
parent
9bc0e7f2e6
commit
51a1b6ba9b
|
@ -228,7 +228,10 @@ void CGraphics::DoRender2D(const CTexture& tex, s32 x, s32 y, s32 w1, s32 w2, s3
|
|||
|
||||
void CGraphics::EndRender2D(bool v) {}
|
||||
|
||||
void CGraphics::SetAlphaCompare(ERglAlphaFunc comp0, u8 ref0, ERglAlphaOp op, ERglAlphaFunc comp1, u8 ref1) {}
|
||||
void CGraphics::SetAlphaCompare(ERglAlphaFunc comp0, u8 ref0, ERglAlphaOp op, ERglAlphaFunc comp1, u8 ref1) {
|
||||
CGX::SetAlphaCompare(static_cast<GX::Compare>(comp0), ref0, static_cast<GX::AlphaOp>(op),
|
||||
static_cast<GX::Compare>(comp1), ref1);
|
||||
}
|
||||
|
||||
void CGraphics::SetViewPointMatrix(const zeus::CTransform& xf) {
|
||||
g_ViewMatrix = xf;
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 5772c54b9935f5e294c522ef5741ce888f33457c
|
||||
Subproject commit 64ffca228bbf642b3302e9d59d44762352717771
|
Loading…
Reference in New Issue