mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
[gl] Use the correct value for sqrt(0.5)
707106781 looks right, but isn't quite.
This commit is contained in:
parent
56d84ef63e
commit
169e0192f2
1 changed files with 2 additions and 2 deletions
|
@ -701,10 +701,10 @@ gl_R_DrawAliasModel (entity_t *e)
|
||||||
qfglColor4ubv (color_black);
|
qfglColor4ubv (color_black);
|
||||||
}
|
}
|
||||||
//FIXME fully vectorize
|
//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);
|
Transform_GetWorldMatrix (e->transform, shadow_mat);
|
||||||
mat4ftranspose (shadow_mat, shadow_mat);
|
mat4ftranspose (shadow_mat, shadow_mat);
|
||||||
vec = mvmulf (shadow_mat, vec);
|
vec = m3vmulf (shadow_mat, vec);
|
||||||
VectorCopy (vec, shadevector);
|
VectorCopy (vec, shadevector);
|
||||||
if (vo->tex_coord)
|
if (vo->tex_coord)
|
||||||
GL_DrawAliasShadowTri (paliashdr, vo);
|
GL_DrawAliasShadowTri (paliashdr, vo);
|
||||||
|
|
Loading…
Reference in a new issue