[gl] Use the correct value for sqrt(0.5)

707106781 looks right, but isn't quite.
This commit is contained in:
Bill Currie 2021-03-10 19:06:15 +09:00
parent 56d84ef63e
commit 169e0192f2

View file

@ -701,10 +701,10 @@ gl_R_DrawAliasModel (entity_t *e)
qfglColor4ubv (color_black);
}
//FIXME fully vectorize
vec4f_t vec = { 707106781, 0, 707106781, 0 };
vec4f_t vec = { 0.707106781, 0, 0.707106781, 0 };
Transform_GetWorldMatrix (e->transform, shadow_mat);
mat4ftranspose (shadow_mat, shadow_mat);
vec = mvmulf (shadow_mat, vec);
vec = m3vmulf (shadow_mat, vec);
VectorCopy (vec, shadevector);
if (vo->tex_coord)
GL_DrawAliasShadowTri (paliashdr, vo);