mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Minor alias model rendering speedup.
This commit is contained in:
parent
10c3f91a24
commit
f773e1fa36
1 changed files with 12 additions and 12 deletions
|
@ -326,14 +326,14 @@ GL_GetAliasFrameVerts16 (int frame, aliashdr_t *paliashdr, entity_t *e)
|
|||
if (r_paused || blend > 1.0)
|
||||
blend = 1.0;
|
||||
|
||||
verts1 = verts + e->pose1 * count;
|
||||
verts2 = verts + e->pose2 * count;
|
||||
|
||||
if (blend == 0.0) {
|
||||
verts = verts1;
|
||||
verts = verts + e->pose1 * count;
|
||||
} else if (blend == 1.0) {
|
||||
verts = verts2;
|
||||
verts = verts + e->pose2 * count;
|
||||
} else {
|
||||
verts1 = verts + e->pose1 * count;
|
||||
verts2 = verts + e->pose2 * count;
|
||||
|
||||
for (i = 0, vo_v = vo->verts; i < count;
|
||||
i++, vo_v++, verts1++, verts2++) {
|
||||
VectorBlend (v1, v2, blend, vo_v->vert);
|
||||
|
@ -416,17 +416,17 @@ GL_GetAliasFrameVerts (int frame, aliashdr_t *paliashdr, entity_t *e)
|
|||
}
|
||||
|
||||
// wierd things start happening if blend passes 1
|
||||
if (r_paused || blend > 1)
|
||||
blend = 1;
|
||||
|
||||
verts1 = verts + e->pose1 * count;
|
||||
verts2 = verts + e->pose2 * count;
|
||||
if (r_paused || blend > 1.0)
|
||||
blend = 1.0;
|
||||
|
||||
if (blend == 0.0) {
|
||||
verts = verts1;
|
||||
verts = verts + e->pose1 * count;
|
||||
} else if (blend == 1.0) {
|
||||
verts = verts2;
|
||||
verts = verts + e->pose2 * count;
|
||||
} else {
|
||||
verts1 = verts + e->pose1 * count;
|
||||
verts2 = verts + e->pose2 * count;
|
||||
|
||||
for (i = 0, vo_v = vo->verts; i < count;
|
||||
i++, vo_v++, verts1++, verts2++) {
|
||||
VectorBlend (verts1->v, verts2->v, blend, vo_v->vert);
|
||||
|
|
Loading…
Reference in a new issue