From f5c387da470ae43a2c8aff75b419e784c8bb3bc5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 14 Apr 2023 11:58:23 +0200 Subject: it probably renders correctly now --- shaders/tile.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shaders/tile.cpp') diff --git a/shaders/tile.cpp b/shaders/tile.cpp index 9725c974..9c347021 100644 --- a/shaders/tile.cpp +++ b/shaders/tile.cpp @@ -78,4 +78,8 @@ float tile_shader::depth_value(const local_coords& xy, float offset) noexcept return ((float)xy.x + (float)xy.y + offset) * depth_tile_size; } +const float tile_shader::scenery_depth_offset = 1./64; +const float tile_shader::wall_depth_offset = 0; +const float tile_shader::z_depth_offset = 1e-4f; + } // namespace floormat -- cgit v1.2.3