Update src/hardware/mw_model.c

Restore old code in GeneratePolygonNormals(), add TODO
This commit is contained in:
Alam Ed Arias 2023-10-15 20:30:06 -04:00
parent 4bec143427
commit 6a37b3c0c6

View file

@ -663,6 +663,7 @@ void GeneratePolygonNormals(model_t *model, int ztag)
{
int k;
mdlframe_t *frame = &mesh->frames[j];
const float *vertices = frame->vertices;
vector_t *polyNormals;
frame->polyNormals = (vector_t*)Z_Malloc(sizeof(vector_t) * mesh->numTriangles, ztag, 0);
@ -671,6 +672,11 @@ void GeneratePolygonNormals(model_t *model, int ztag)
for (k = 0; k < mesh->numTriangles; k++)
{
/// TODO: normalize vectors
(void)vertices;
(void)polyNormals;
// Vector::Normal(vertices, polyNormals);
vertices += 3 * 3;
polyNormals++;
}
}