DS GX: Fix normal texture mapping

This commit is contained in:
Vicki Pfau 2017-04-08 12:15:19 -07:00
parent 6f04c89c5f
commit 2134a701c8
1 changed files with 2 additions and 2 deletions

View File

@ -979,8 +979,8 @@ static void _fifoRun(struct mTiming* timing, void* context, uint32_t cyclesLate)
y >>= 3;
z >>= 3;
if (DSGXTexParamsGetCoordTfMode(gx->currentPoly.texParams) == 2) {
gx->currentVertex.vs = _dotFrac(x, y, z, &gx->texMatrix.m[0]) + gx->currentVertex.s;
gx->currentVertex.vt = _dotFrac(x, y, z, &gx->texMatrix.m[1]) + gx->currentVertex.t;
gx->currentVertex.vs = (_dotFrac(x, y, z, &gx->texMatrix.m[0]) + gx->currentVertex.s) >> 11;
gx->currentVertex.vt = (_dotFrac(x, y, z, &gx->texMatrix.m[1]) + gx->currentVertex.t) >> 11;
}
int16_t nx = _dotFrac(x, y, z, &gx->vecMatrix.m[0]);
int16_t ny = _dotFrac(x, y, z, &gx->vecMatrix.m[1]);