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

master
Zed A. Shaw 2 months ago
parent fdc5931b96
commit 5305aea077
  1. BIN
      assets/floor_tile_test-256.png
  2. BIN
      assets/portal.png
  3. BIN
      assets/tile01.png
  4. BIN
      assets/tile32.png
  5. BIN
      assets/undead_peasant-256.png
  6. BIN
      assets/wall_texture_test-256.png
  7. BIN
      assets/wood_barrel_large-256.png
  8. 2
      raycaster.cpp

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@ -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;

Loading…
Cancel
Save