textures.

well, it's a start.
This commit is contained in:
StapleButter
2017-03-02 00:49:44 +01:00
parent f7c481b2a1
commit dcc0227b56
4 changed files with 133 additions and 13 deletions

View File

@ -1245,7 +1245,7 @@ void ExecuteCommand()
case 0x22: // texcoord
TexCoords[0] = ExecParams[0] & 0xFFFF;
TexCoords[1] = ExecParams[1] >> 16;
TexCoords[1] = ExecParams[0] >> 16;
if ((TexParam >> 30) == 1)
{
TexCoords[0] = (TexCoords[0]*TexMatrix[0] + TexCoords[1]*TexMatrix[4] + TexMatrix[8] + TexMatrix[12]) >> 12;