mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
models: fix mdl texture coordinates
This commit is contained in:
parent
d5020ecd82
commit
b375239b61
1 changed files with 1 additions and 5 deletions
|
@ -461,10 +461,6 @@ Mod_LoadModel_MDL(const char *mod_name, const void *buffer, int modfilelen,
|
|||
{
|
||||
poutst[i].s += skinwidth * 0.5f; /* Backface */
|
||||
}
|
||||
|
||||
/* Scale s and t to range from 0.0 to 1.0 */
|
||||
poutst[i].s = (poutst[i].s + 0.5) / skinwidth;
|
||||
poutst[i].t = (poutst[i].t + 0.5) / skinheight;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -502,7 +498,7 @@ Mod_LoadModel_MDL(const char *mod_name, const void *buffer, int modfilelen,
|
|||
/* Draw each vertex */
|
||||
for (j = 0; j < 3; ++j)
|
||||
{
|
||||
float s,t;
|
||||
float s, t;
|
||||
int index;
|
||||
|
||||
index = triangles[i].vertex[j];
|
||||
|
|
Loading…
Reference in a new issue