mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Rearrange vertex order in quads.
This commit is contained in:
parent
0a7ddae612
commit
097ff0006f
1 changed files with 16 additions and 16 deletions
|
@ -1322,32 +1322,32 @@ R_DrawParticles (void)
|
|||
switch (part->tex) {
|
||||
case 0:
|
||||
VA[0].texcoord[0] = 0.0;
|
||||
VA[0].texcoord[1] = 0.5;
|
||||
VA[1].texcoord[0] = 0.0;
|
||||
VA[0].texcoord[1] = 0.0;
|
||||
VA[1].texcoord[0] = 0.5;
|
||||
VA[1].texcoord[1] = 0.0;
|
||||
VA[2].texcoord[0] = 0.5;
|
||||
VA[2].texcoord[1] = 0.0;
|
||||
VA[3].texcoord[0] = 0.5;
|
||||
VA[2].texcoord[1] = 0.5;
|
||||
VA[3].texcoord[0] = 0.0;
|
||||
VA[3].texcoord[1] = 0.5;
|
||||
break;
|
||||
case 1:
|
||||
VA[0].texcoord[0] = 0.5;
|
||||
VA[0].texcoord[1] = 0.5;
|
||||
VA[1].texcoord[0] = 0.5;
|
||||
VA[0].texcoord[1] = 0.0;
|
||||
VA[1].texcoord[0] = 1.0;
|
||||
VA[1].texcoord[1] = 0.0;
|
||||
VA[2].texcoord[0] = 1.0;
|
||||
VA[2].texcoord[1] = 0.0;
|
||||
VA[3].texcoord[0] = 1.0;
|
||||
VA[2].texcoord[1] = 0.5;
|
||||
VA[3].texcoord[0] = 0.5;
|
||||
VA[3].texcoord[1] = 0.5;
|
||||
break;
|
||||
case 2:
|
||||
VA[0].texcoord[0] = 0.0;
|
||||
VA[0].texcoord[1] = 1.0;
|
||||
VA[1].texcoord[0] = 0.0;
|
||||
VA[0].texcoord[1] = 0.5;
|
||||
VA[1].texcoord[0] = 0.5;
|
||||
VA[1].texcoord[1] = 0.5;
|
||||
VA[2].texcoord[0] = 0.5;
|
||||
VA[2].texcoord[1] = 0.5;
|
||||
VA[3].texcoord[0] = 0.5;
|
||||
VA[2].texcoord[1] = 1.0;
|
||||
VA[3].texcoord[0] = 0.0;
|
||||
VA[3].texcoord[1] = 1.0;
|
||||
break;
|
||||
}
|
||||
|
@ -1360,10 +1360,10 @@ R_DrawParticles (void)
|
|||
VectorAdd (right_scale, up_scale, up_right_scale);
|
||||
VectorSubtract (right_scale, up_scale, down_right_scale);
|
||||
|
||||
VectorAdd (part->org, up_right_scale, VA[0].vertex);
|
||||
VectorAdd (part->org, down_right_scale, VA[1].vertex);
|
||||
VectorSubtract (part->org, up_right_scale, VA[2].vertex);
|
||||
VectorSubtract (part->org, down_right_scale, VA[3].vertex);
|
||||
VectorAdd (part->org, down_right_scale, VA[0].vertex);
|
||||
VectorSubtract (part->org, up_right_scale, VA[1].vertex);
|
||||
VectorSubtract (part->org, down_right_scale, VA[2].vertex);
|
||||
VectorAdd (part->org, up_right_scale, VA[3].vertex);
|
||||
|
||||
VA += 4;
|
||||
vacount += 4;
|
||||
|
|
Loading…
Reference in a new issue