From 9aba8139b728d3b25f5763ddc134b09e5a2e1948 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 10 Dec 2023 23:35:48 +0100 Subject: w --- shaders/lightmap.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shaders') 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), -- cgit v1.2.3