From a91f743cea0e72b7ef7c18683d51aa603407afa2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 22 Nov 2023 15:29:40 +0100 Subject: a --- shaders/lightmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shaders') 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 #include #include +#include #include #include #include @@ -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; -- cgit v1.2.3