Assorted GPU fixes: Advance vertex pointer, fixes missing triangles in SPT. More logging. Separate proj matrices for through and normal mode (through matrix don't need to get updated as often). Some cleanup.

This commit is contained in:
Henrik Rydgard committed 2012-11-28 13:45:22 +01:00
1 parent 111f52d67f
commit 980d13fe50
15 files changed
+204 -109

No files matched your search

+3 -3
View File
@@ -156,7 +156,7 @@ void VertexDecoder::DecodeVerts(DecodedVertex *decoded, const void *verts, const
{
const u8 *wdata = (const u8*)(ptr);
for (int j = 0; j < nweights; j++)
wt[j] = (float)wdata[j] / 255.0f;
wt[j] = (float)wdata[j] / 128.0f;
}
break;
@@ -164,7 +164,7 @@ void VertexDecoder::DecodeVerts(DecodedVertex *decoded, const void *verts, const
{
const u16 *wdata = (const u16*)(ptr);
for (int j = 0; j < nweights; j++)
wt[j] = (float)wdata[j] / 65535.0f;
wt[j] = (float)wdata[j] / 32768.0f;
}
break;
@@ -190,7 +190,7 @@ void VertexDecoder::DecodeVerts(DecodedVertex *decoded, const void *verts, const
{
const u8 *uvdata = (const u8*)(ptr + tcoff);
for (int j = 0; j < 2; j++)
uv[j] = (float)uvdata[j] / 255.0f;
uv[j] = (float)uvdata[j] / 128.0f;
break;
}