try to fix non-glsl skybox.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5211 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
9f27189937
commit
312d64bb4a
1 changed files with 3 additions and 3 deletions
|
@ -1748,9 +1748,9 @@ static float *tcgen3(const shaderpass_t *pass, int cnt, float *dst, const mesh_t
|
|||
src = mesh->xyz_array;
|
||||
for (i = 0; i < cnt; i++, dst += 3)
|
||||
{
|
||||
dst[0] = src[i][0] - shaderstate.modelmatrix[3];
|
||||
dst[1] = shaderstate.modelmatrix[7] - src[i][1];
|
||||
dst[2] = src[i][2] - shaderstate.modelmatrix[11];
|
||||
dst[0] = src[i][0] - r_refdef.vieworg[0];
|
||||
dst[1] = r_refdef.vieworg[1] - src[i][1];
|
||||
dst[2] = src[i][2] - r_refdef.vieworg[2];
|
||||
}
|
||||
return dst-cnt*3;
|
||||
|
||||
|
|
Loading…
Reference in a new issue