3D biomes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user