Fix projection matrix bug

This commit is contained in:
James Lambert 2022-11-12 21:14:14 -07:00
parent d4a662e638
commit 927a977632

View File

@ -327,7 +327,7 @@ void portalRenderScreenCover(struct Vector2s16* points, int pointCount, struct R
gDPPipeSync(renderState->dl++); gDPPipeSync(renderState->dl++);
gSPPopMatrix(renderState->dl++, G_MTX_MODELVIEW); gSPPopMatrix(renderState->dl++, G_MTX_MODELVIEW);
gSPMatrix(renderState->dl++, props->cameraMatrixInfo.perspectiveNormalize, G_MTX_LOAD | G_MTX_PROJECTION | G_MTX_NOPUSH); gSPMatrix(renderState->dl++, props->cameraMatrixInfo.projectionView, G_MTX_LOAD | G_MTX_PROJECTION | G_MTX_NOPUSH);
gDPSetDepthSource(renderState->dl++, G_ZS_PIXEL); gDPSetDepthSource(renderState->dl++, G_ZS_PIXEL);
gDPSetRenderMode(renderState->dl++, G_RM_ZB_OPA_SURF, G_RM_ZB_OPA_SURF2); gDPSetRenderMode(renderState->dl++, G_RM_ZB_OPA_SURF, G_RM_ZB_OPA_SURF2);
} }