light: PrintFaceInfo: also print the interpolated normals

This commit is contained in:
Eric Wasylishen 2016-04-11 00:59:01 -06:00
parent c86731ab58
commit f2d33137ef
1 changed files with 5 additions and 3 deletions

View File

@ -290,10 +290,12 @@ PrintFaceInfo(const bsp2_dface_t *face, const bsp2_t *bsp)
int edge = bsp->dsurfedges[face->firstedge + i];
int vert = (edge >= 0) ? bsp->dedges[edge].v[0] : bsp->dedges[-edge].v[1];
const float *point = bsp->dvertexes[vert].point;
logprint("%s %3d (%3.3f, %3.3f, %3.3f) :: edge %d\n",
const float *norm = GetSurfaceVertexNormal(bsp, face, i);
logprint("%s %3d (%3.3f, %3.3f, %3.3f) :: normal (%3.3f, %3.3f, %3.3f) :: edge %d\n",
i ? " " : " verts ", vert,
point[0], point[1], point[2], edge);
point[0], point[1], point[2],
norm[0], norm[1], norm[2],
edge);
}
}