mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix the broken lighting for unlerped verteces
This commit is contained in:
parent
f8daa09bcb
commit
b582a02aff
1 changed files with 4 additions and 3 deletions
|
@ -336,12 +336,13 @@ GL_GetAliasFrameVerts (int frame, aliashdr_t *paliashdr, entity_t *e)
|
|||
for (j = 0; j < 3; j++)
|
||||
vo_v->vert[j] = verts->v[j] + (verts +
|
||||
count)->v[j] / (float)256;
|
||||
vo_v->lightdot = shadedots[verts->lightnormalindex];
|
||||
}
|
||||
vo_v->lightdot = shadedots[verts->lightnormalindex];
|
||||
} else {
|
||||
for (i = 0, vo_v = vo->verts; i < count; i++, vo_v++, verts++)
|
||||
for (i = 0, vo_v = vo->verts; i < count; i++, vo_v++, verts++) {
|
||||
VectorCopy (verts->v, vo_v->vert);
|
||||
vo_v->lightdot = shadedots[verts->lightnormalindex];
|
||||
vo_v->lightdot = shadedots[verts->lightnormalindex];
|
||||
}
|
||||
}
|
||||
lastposenum = pose;
|
||||
return vo;
|
||||
|
|
Loading…
Reference in a new issue