summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-scenery.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-09 22:33:16 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-09 22:33:16 +0200
commitc04906db429b7c626a753d49e2d64c51135c6039 (patch)
treed38ea8ca3c2bec1438cf5ab60825deaa053ff1b6 /src/chunk-scenery.hpp
parentb2f0c4532872e630b8c543d85dbb56709c625b99 (diff)
draw: now fix reordering properly
Diffstat (limited to 'src/chunk-scenery.hpp')
-rw-r--r--src/chunk-scenery.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chunk-scenery.hpp b/src/chunk-scenery.hpp
index cbe2ea83..1363479b 100644
--- a/src/chunk-scenery.hpp
+++ b/src/chunk-scenery.hpp
@@ -11,6 +11,7 @@ struct chunk::topo_sort_data
entity* in = nullptr;
Vector2i min, max, center;
+ uint32_t in_mesh_idx;
float slope = 0, ord;
Vector2s bb_min = {}, bb_max = {};
m mode : 2 = mode_none;
@@ -21,6 +22,7 @@ struct chunk::topo_sort_data
struct chunk::entity_draw_order
{
entity *e;
+ uint32_t mesh_idx;
float ord;
topo_sort_data data;
};