Fixed up the floor and ceiling textures to not have seams.

This commit is contained in:
Zed A. Shaw 2025-01-22 06:17:28 -05:00
parent fdc5931b96
commit 5305aea077
8 changed files with 1 additions and 1 deletions

View file

@ -17,7 +17,7 @@ union ColorConv {
};
inline uint32_t dumb_lighting(uint32_t pixel, double distance) {
if(distance < 0.9) return pixel;
if(distance < 1) return pixel;
ColorConv conv{.as_int=pixel};
conv.as_color.r /= distance;