diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 15:29:40 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 15:29:40 +0100 |
commit | a91f743cea0e72b7ef7c18683d51aa603407afa2 (patch) | |
tree | 750a924144ef2b1a97fa532dee27589b9f049625 /shaders | |
parent | 71461bb69d54cf461d7c1222b09094c6fc5c73fc (diff) |
a
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/lightmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp index d782a376..30c98055 100644 --- a/shaders/lightmap.cpp +++ b/shaders/lightmap.cpp @@ -1,6 +1,5 @@ #include "shaders/lightmap.hpp" #include "compat/assert.hpp" -#include "compat/math.hpp" #include "src/tile-defs.hpp" #include "src/chunk.hpp" #include "src/tile-bbox.hpp" @@ -12,6 +11,7 @@ #include <Corrade/Containers/PairStl.h> #include <Corrade/Containers/Iterable.h> #include <Corrade/Containers/ArrayViewStl.h> +#include <Magnum/Math/Functions.h> #include <Magnum/GL/Context.h> #include <Magnum/GL/MeshView.h> #include <Magnum/GL/Shader.h> @@ -30,7 +30,7 @@ constexpr float fuzz_pixels = 4; constexpr float shadow_wall_depth = 8; constexpr float real_image_size = 1024; -constexpr auto half_neighbors = (int)math::ceil(neighbor_count/2.f); +constexpr auto half_neighbors = (int)Math::ceil(neighbor_count/2.f); constexpr auto image_size = TILE_SIZE2 * TILE_MAX_DIM * neighbor_count; constexpr auto chunk_size = TILE_SIZE2 * TILE_MAX_DIM; |