3D biomes

This commit is contained in:
2026-11-07 12:13:43 -03:00
parent b726ce9695
commit 22191d260c
53 changed files with 874 additions and 316 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ export class GameRenderer {
const { x, y, z } = client.camera;
const [bx, by, bz] = [Math.floor(x), Math.floor(y), Math.floor(z)];
if (!client.level.is_fluid(bx, by, bz)) return;
const color = client.level.water_color(bx, bz);
const color = client.level.water_color(bx, by, bz);
draw_rect(0, 0, canvas.width, canvas.height, [
(color >> 16) / 255,
((color >> 8) & 0xff) / 255,