Client side chunk sections
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ import { DEFAULT_SHAPE } from "@/common/world_shape.ts";
|
||||
import { get_state_value, set_state_value } from "@/common/utils.ts";
|
||||
import { cell_index, corner_height, fluid_quads, type FluidCell } from "@/client/workers/fluid_mesh.ts";
|
||||
import { TERRAIN_VERTEX_BYTES } from "@/client/workers/chunk_messages.ts";
|
||||
import { test_game } from "./helpers.ts";
|
||||
import { section_data, test_game } from "./helpers.ts";
|
||||
|
||||
const OIL: BlockJson = {
|
||||
id: "oily:oil",
|
||||
@@ -194,7 +194,7 @@ async function mesh(blocks: [number, number, number, string, number?][]) {
|
||||
chunk_x: 0,
|
||||
chunk_z: 0,
|
||||
version: 1,
|
||||
chunks,
|
||||
chunks: chunks.map(section_data),
|
||||
biome_colors: chunks.map(() => null),
|
||||
camera: [0, 0, 0],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user