From: Randy McShandy Date: Tue, 30 Apr 2024 03:26:33 +0000 (-0500) Subject: Rounding heightmap with a little bias looks pretty nice X-Git-Url: http://git.mcshandy.xyz/gitweb.cgi?a=commitdiff_plain;h=5ef5e973d138c3f0152e6dc7bbd4c427c93bf205;p=barrow_crawler Rounding heightmap with a little bias looks pretty nice --- diff --git a/src/utils.c b/src/utils.c index 17cdec7..b5b8171 100644 --- a/src/utils.c +++ b/src/utils.c @@ -157,7 +157,7 @@ int generate_rd(int worker_count, RD_Opts active_opt, FVec2 **grid_buffer, IVec2 { for (int y = 0; y < pgrid_size.y; y++) { - buffer[x][y] = (uint8_t)(255.0f * grid_buffer[x][y].a); + buffer[x][y] = (uint8_t)(255.0f * round(-0.05f + grid_buffer[x][y].a)); } } char name[64] = {0};