Remaining GX2SetPolygonOffset Uses

Port over the remaining uses of this from HD
This commit is contained in:
SuperDude88
2026-05-30 19:34:49 -04:00
parent b6b71a32c7
commit b99ad37541
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -2225,6 +2225,13 @@ void mDoExt_invJntPacket::draw() {
JUT_ASSERT(5011, shapePkt != NULL);
shapePkt->getShape()->loadPreDrawSetting();
#if DUSK_TPHD
{
const auto* offs = sp18->getMaterial()->getPEBlock()->getPolygonOffset();
GX2SetPolygonOffset(offs->mFrontOffset, offs->mFrontScale, offs->mBackOffset, offs->mBackScale, offs->mClamp);
}
#endif
do {
if (!shapePkt->getShape()->checkFlag(1)) {
if (shapePkt->getDisplayListObj() != NULL) {