mirror of
https://github.com/nothings/stb
synced 2024-12-16 04:42:42 +03:00
Merge branch 'add_up_down_checks_to_geometry' of https://github.com/friesencr/stb
This commit is contained in:
commit
2afb815509
@ -3384,7 +3384,8 @@ static void stbvox_make_mesh_for_column(stbvox_mesh_maker *mm, int x, int y, int
|
|||||||
int z;
|
int z;
|
||||||
for (z=z0; z < mm->z1; ++z) {
|
for (z=z0; z < mm->z1; ++z) {
|
||||||
if (bt[z] && ( !bt[z+ns_off] || !STBVOX_GET_GEO(geo[z+ns_off]) || !bt[z-ns_off] || !STBVOX_GET_GEO(geo[z-ns_off])
|
if (bt[z] && ( !bt[z+ns_off] || !STBVOX_GET_GEO(geo[z+ns_off]) || !bt[z-ns_off] || !STBVOX_GET_GEO(geo[z-ns_off])
|
||||||
|| !bt[z+ew_off] || !STBVOX_GET_GEO(geo[z+ew_off]) || !bt[z-ew_off] || !STBVOX_GET_GEO(geo[z-ew_off])))
|
|| !bt[z+ew_off] || !STBVOX_GET_GEO(geo[z+ew_off]) || !bt[z-ew_off] || !STBVOX_GET_GEO(geo[z-ew_off])
|
||||||
|
|| !bt[z-1] || !STBVOX_GET_GEO(geo[z-1]) || !bt[z+1] || !STBVOX_GET_GEO(geo[z+1])))
|
||||||
{ // TODO check up and down
|
{ // TODO check up and down
|
||||||
pos.z = z;
|
pos.z = z;
|
||||||
stbvox_make_mesh_for_block_with_geo(mm, pos, v_off+z);
|
stbvox_make_mesh_for_block_with_geo(mm, pos, v_off+z);
|
||||||
|
Loading…
Reference in New Issue
Block a user