diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 05:33:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 05:33:40 +0200 |
commit | 360472cea877b179ef529200a9789327b11cce59 (patch) | |
tree | 43a27d20eed34533d763e085bef8582c2b25a98d /main/draw.cpp | |
parent | 689e04da905c1ceb8142975d3306c7b334eebbc9 (diff) |
a
Diffstat (limited to 'main/draw.cpp')
-rw-r--r-- | main/draw.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/draw.cpp b/main/draw.cpp index 85cabb90..b68c0b2b 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -85,8 +85,8 @@ void app::draw_wireframe_box(local_coords pt) { constexpr float LINE_WIDTH = 1.5; - constexpr auto X = TILE_SIZE[0], Y = TILE_SIZE[1]; - constexpr Vector3 size{TILE_SIZE[0], TILE_SIZE[1], TILE_SIZE[2]*1.5f}; + constexpr auto X = TILE_SIZE[0], Y = TILE_SIZE[1], Z = TILE_SIZE[2]; + constexpr Vector3 size{X, Y, Z}; const Vector3 center1{X*pt.x, Y*pt.y, 0}; _shader.set_tint({0, 1, 0, 1}); _wireframe_box.draw(_shader, {center1, size, LINE_WIDTH}); |