diff options
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/lightmap.cpp | 4 | ||||
-rw-r--r-- | shaders/lightmap.hpp | 2 | ||||
-rw-r--r-- | shaders/lightmap.vert | 1 |
3 files changed, 3 insertions, 4 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}); diff --git a/shaders/lightmap.hpp b/shaders/lightmap.hpp index d4e09815..b8bbd0c7 100644 --- a/shaders/lightmap.hpp +++ b/shaders/lightmap.hpp @@ -87,7 +87,7 @@ private: size_t count = 0, capacity = 0; Framebuffer framebuffer; GL::Mesh occlusion_mesh{NoCreate}; - static constexpr auto starting_capacity = 1; // todo + static constexpr auto starting_capacity = 32; GL::Buffer light_vertex_buf{NoCreate}; GL::Mesh light_mesh{NoCreate}; diff --git a/shaders/lightmap.vert b/shaders/lightmap.vert index 1a8a39f1..c292f5c8 100644 --- a/shaders/lightmap.vert +++ b/shaders/lightmap.vert @@ -16,7 +16,6 @@ uniform Lightmap { layout (location = 0) in vec3 position; void main() { - // todo add interface blocks vec2 pos = position.xy; if (mode == 0) { |