summaryrefslogtreecommitdiffhomepage
path: root/shaders/lightmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/lightmap.cpp')
-rw-r--r--shaders/lightmap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp
index f925cc98..1be58131 100644
--- a/shaders/lightmap.cpp
+++ b/shaders/lightmap.cpp
@@ -377,7 +377,7 @@ void lightmap_shader::add_geometry(Vector2 neighbor_offset, chunk& c)
if (atlas->info().passability == pass_mode::blocked)
{
auto start = tile_start(i);
- auto min = start - Vector2(0, shadow_wall_depth),
+ auto min = start - Vector2(0, shadow_wall_depth), // todo wall depth
max = start + Vector2(TILE_SIZE2[0], 0);
constexpr auto fuzz = Vector2(fuzz_pixels, 0), fuzz2 = fuzz*2;
add_rect(neighbor_offset, {min-fuzz, max+fuzz2});
@@ -386,7 +386,7 @@ void lightmap_shader::add_geometry(Vector2 neighbor_offset, chunk& c)
if (atlas->info().passability == pass_mode::blocked)
{
auto start = tile_start(i);
- auto min = start - Vector2(shadow_wall_depth, 0),
+ auto min = start - Vector2(shadow_wall_depth, 0), // todo wall depth
max = start + Vector2(0, TILE_SIZE[1]);
constexpr auto fuzz = Vector2(0, fuzz_pixels), fuzz2 = fuzz*2;
add_rect(neighbor_offset, {min-fuzz, max+fuzz2});