Fixed a bug with texcoord generation mode 2 (normal).

This commit is contained in:
luigi__ 2009-02-09 19:08:06 +00:00
parent 32fd9d5ec5
commit 68375447ed
1 changed files with 2 additions and 3 deletions

View File

@ -885,9 +885,6 @@ void gfx3d_glNormal(u32 v)
normalTable[(v>>10)&1023],
normalTable[(v>>20)&1023]};
//use the current normal transform matrix
MatrixMultVec3x3 (mtxCurrent[2], normal);
if (texCoordinateTransform == 2)
{
last_s =( (normal[0] *mtxCurrent[3][0] + normal[1] *mtxCurrent[3][4] +
@ -896,6 +893,8 @@ void gfx3d_glNormal(u32 v)
normal[2] *mtxCurrent[3][9]) + (_t*16.0f)) / 16.0f;
}
//use the current normal transform matrix
MatrixMultVec3x3 (mtxCurrent[2], normal);
//apply lighting model
{