fix the broken lighting for unlerped verteces

This commit is contained in:
Bill Currie 2002-01-07 01:05:44 +00:00
parent f8daa09bcb
commit b582a02aff

View file

@ -336,12 +336,13 @@ GL_GetAliasFrameVerts (int frame, aliashdr_t *paliashdr, entity_t *e)
for (j = 0; j < 3; j++) for (j = 0; j < 3; j++)
vo_v->vert[j] = verts->v[j] + (verts + vo_v->vert[j] = verts->v[j] + (verts +
count)->v[j] / (float)256; count)->v[j] / (float)256;
vo_v->lightdot = shadedots[verts->lightnormalindex];
} }
vo_v->lightdot = shadedots[verts->lightnormalindex];
} else { } 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); VectorCopy (verts->v, vo_v->vert);
vo_v->lightdot = shadedots[verts->lightnormalindex]; vo_v->lightdot = shadedots[verts->lightnormalindex];
}
} }
lastposenum = pose; lastposenum = pose;
return vo; return vo;