mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-02 17:48:21 -04:00
Remaining GX2SetPolygonOffset Uses
Port over the remaining uses of this from HD
This commit is contained in:
@@ -1128,7 +1128,14 @@ void dDlst_shadowReal_c::draw() {
|
||||
{
|
||||
GXLoadTexMtxImm(mReceiverProjMtx, GX_TEXMTX0, GX_MTX3x4);
|
||||
}
|
||||
|
||||
#ifdef DUSK_TPHD
|
||||
GX2SetPolygonOffset(-10.0f, -10.0f, -10.0f, -10.0f, 0);
|
||||
#endif
|
||||
mShadowRealPoly.draw();
|
||||
#ifdef DUSK_TPHD
|
||||
GX2SetPolygonOffset(0.0f, 0.0f, 0.0f, 0.0f, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
static int psdRealCallBack(cBgS_ShdwDraw* param_0, cBgD_Vtx_t* param_1, int param_2,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user