mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-21 06:20:44 +00:00
- fixed winding of voxel polygons.
This commit is contained in:
parent
14a6e7989b
commit
dde25820e2
1 changed files with 3 additions and 3 deletions
|
@ -314,12 +314,12 @@ void FVoxelModel::MakeSlabPolys(int x, int y, kvxslab_t *voxptr, FVoxelMap &chec
|
||||||
}
|
}
|
||||||
if (cull & 4)
|
if (cull & 4)
|
||||||
{
|
{
|
||||||
AddFace(x, y, z, x+1, y, z, x, y, z+c, x+1, y, z+c, *col, check);
|
AddFace(x+1, y, z, x, y, z, x+1, y, z+c, x, y, z+c, *col, check);
|
||||||
}
|
}
|
||||||
if (cull & 8)
|
if (cull & 8)
|
||||||
{
|
{
|
||||||
AddFace(x+1, y+1, z, x, y+1, z, x+1, y+1, z+c, x, y+1, z+c, *col, check);
|
AddFace(x, y+1, z, x+1, y+1, z, x, y+1, z+c, x+1, y+1, z+c, *col, check);
|
||||||
}
|
}
|
||||||
z+=c;
|
z+=c;
|
||||||
col+=c;
|
col+=c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue