mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
Normalize the vertex normals.
I was wondering why the lighting looked a little extreme in overkill.
This commit is contained in:
parent
bfc743fdcd
commit
c6bcd7aedb
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue