summaryrefslogtreecommitdiffhomepage
path: root/shaders/lightmap.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-11 03:18:00 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-11 03:18:00 +0100
commitf3d870a400395e75f601f32a3bbb3e68502d9000 (patch)
tree3735b14eaa74d4a80d9197ac973b5dbffbd675d6 /shaders/lightmap.cpp
parentb91deae59c69ca41d5feffaf4f16b29ee47af64d (diff)
fix some todo's
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});