OpenGL2: Store normals/tangents as int16_t[4].
This commit is contained in:
parent
762f50757d
commit
dfbaf50324
13 changed files with 288 additions and 1042 deletions
|
@ -207,7 +207,11 @@ static int neighbors[8][2] = {
|
|||
//if ( count == 0 ) {
|
||||
// printf("bad normal\n");
|
||||
//}
|
||||
VectorNormalize2( sum, dv->normal );
|
||||
{
|
||||
vec3_t fNormal;
|
||||
VectorNormalize2(sum, fNormal);
|
||||
R_VaoPackNormal(dv->normal, fNormal);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue