Normalize the vertex normals.

I was wondering why the lighting looked a little extreme in overkill.
This commit is contained in:
Bill Currie 2012-01-05 12:45:43 +09:00
parent bfc743fdcd
commit c6bcd7aedb

View file

@ -169,7 +169,7 @@ set_arrays (const shaderparam_t *vert, const shaderparam_t *norm,
0, sizeof (aliasvrt_t),
pose_offs + field_offset (aliasvrt_t, vertex));
qfglVertexAttribPointer (norm->location, 3, GL_SHORT,
0, sizeof (aliasvrt_t),
1, sizeof (aliasvrt_t),
pose_offs + field_offset (aliasvrt_t, normal));
qfglVertexAttribPointer (st->location, 2, GL_SHORT,
0, sizeof (aliasvrt_t),