diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-10 23:35:48 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-10 23:35:48 +0100 |
commit | 9aba8139b728d3b25f5763ddc134b09e5a2e1948 (patch) | |
tree | 37f18eee33ba98b79c5980961a0f12fbc9017b51 /shaders | |
parent | 4e46a8101b2063457ac0c56770e58cd0bedf52ea (diff) |
w
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/lightmap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp index c56fbaa6..d0e32453 100644 --- a/shaders/lightmap.cpp +++ b/shaders/lightmap.cpp @@ -4,6 +4,7 @@ #include "src/chunk.hpp" #include "src/tile-bbox.hpp" #include "src/tile-atlas.hpp" +#include "src/wall-atlas.hpp" #include "src/quads.hpp" #include "src/object.hpp" #include "loader/loader.hpp" @@ -373,7 +374,7 @@ void lightmap_shader::add_geometry(Vector2 neighbor_offset, chunk& c) add_rect(neighbor_offset, {min-fuzz, max+fuzz2}); } if (auto atlas = t.wall_north_atlas()) - if (atlas->pass_mode(pass_mode::blocked) == pass_mode::blocked) + if (atlas->info().passability == pass_mode::blocked) { auto start = tile_start(i); auto min = start - Vector2(0, shadow_wall_depth), @@ -382,7 +383,7 @@ void lightmap_shader::add_geometry(Vector2 neighbor_offset, chunk& c) add_rect(neighbor_offset, {min-fuzz, max+fuzz2}); } if (auto atlas = t.wall_west_atlas()) - if (atlas->pass_mode(pass_mode::blocked) == pass_mode::blocked) + if (atlas->info().passability == pass_mode::blocked) { auto start = tile_start(i); auto min = start - Vector2(shadow_wall_depth, 0), |