Client side chunk sections
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@ import { DEFAULT_SHAPE } from "@/common/world_shape.ts";
|
||||
import { generate_raw_chunk } from "@/common/generation.ts";
|
||||
import { get_biome } from "@/common/worldgen/biomes.ts";
|
||||
import { type LayerMesh, TERRAIN_VERTEX_BYTES } from "@/client/workers/chunk_messages.ts";
|
||||
import { test_game } from "./helpers.ts";
|
||||
import { section_data, test_game } from "./helpers.ts";
|
||||
|
||||
type Colors = { grass: number; foliage: number; water?: number };
|
||||
|
||||
@@ -53,7 +53,7 @@ async function mesh_block(id: string, x: number, middle: Colors, west: Colors |
|
||||
chunk_x: 0,
|
||||
chunk_z: 0,
|
||||
version: 1,
|
||||
chunks,
|
||||
chunks: chunks.map(section_data),
|
||||
biome_colors: colors,
|
||||
camera: [0, 0, 0],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user