mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-03-25 20:42:35 +00:00
More work on sprite-texture model uv adjustment 2
This commit is contained in:
parent
edc479fd13
commit
85b2ed594f
2 changed files with 2 additions and 3 deletions
|
|
@ -225,9 +225,10 @@ model_t *LoadModel(const char *filename, int ztag)
|
|||
for (i = 0; i < model->numMeshes; i++)
|
||||
model->meshes[i].originaluvs = model->meshes[i].uvs;
|
||||
|
||||
// Set initial values to max_s and max_t
|
||||
model->max_s = 1.0;
|
||||
model->max_t = 1.0;
|
||||
model->vbo_max_s = 1.0;
|
||||
model->vbo_max_t = 1.0;
|
||||
|
||||
return model;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2803,7 +2803,6 @@ static void DrawModelEx(model_t *model, INT32 frameIndex, INT32 duration, INT32
|
|||
}
|
||||
else
|
||||
{
|
||||
//CONS_Printf("non-vbo tinyframe\n");
|
||||
pglVertexPointer(3, GL_SHORT, 0, frame->vertices);
|
||||
pglNormalPointer(GL_BYTE, 0, frame->normals);
|
||||
pglTexCoordPointer(2, GL_FLOAT, 0, mesh->uvs);
|
||||
|
|
@ -2858,7 +2857,6 @@ static void DrawModelEx(model_t *model, INT32 frameIndex, INT32 duration, INT32
|
|||
}
|
||||
else
|
||||
{
|
||||
//CONS_Printf("non-vbo frame\n");
|
||||
pglVertexPointer(3, GL_FLOAT, 0, frame->vertices);
|
||||
pglNormalPointer(GL_FLOAT, 0, frame->normals);
|
||||
pglTexCoordPointer(2, GL_FLOAT, 0, mesh->uvs);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue