mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-17 01:11:18 +00:00
Try to fix a colours issue mixup. that glsl specifies a colour attribute.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4373 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
69415bc35b
commit
71207fce9b
1 changed files with 2 additions and 0 deletions
|
@ -677,6 +677,7 @@ static void GL_DrawSkyBox (texid_t *texnums, batch_t *s)
|
|||
vecV_t skyface_vertex[4];
|
||||
vec2_t skyface_texcoord[4];
|
||||
index_t skyface_index[6] = {0, 1, 2, 0, 2, 3};
|
||||
vec4_t skyface_colours[4] = {{1,1,1,1},{1,1,1,1},{1,1,1,1},{1,1,1,1}};
|
||||
mesh_t skyfacemesh = {0};
|
||||
|
||||
if (cl.skyrotate)
|
||||
|
@ -706,6 +707,7 @@ static void GL_DrawSkyBox (texid_t *texnums, batch_t *s)
|
|||
skyfacemesh.indexes = skyface_index;
|
||||
skyfacemesh.st_array = skyface_texcoord;
|
||||
skyfacemesh.xyz_array = skyface_vertex;
|
||||
skyfacemesh.colors4f_array = skyface_colours;
|
||||
skyfacemesh.numindexes = 6;
|
||||
skyfacemesh.numvertexes = 4;
|
||||
|
||||
|
|
Loading…
Reference in a new issue