Rename engine to cubi

This commit is contained in:
2026-11-03 17:17:37 -03:00
parent 68b78f053a
commit 98fa45ebd1
109 changed files with 643 additions and 788 deletions
+4 -4
View File
@@ -473,7 +473,7 @@ function block_quads(value: number): MeshQuad[] {
flush: quad.flush,
group: quad.aligned ? quad.face : UNALIGNED_GROUP,
shade: quad.shade ? FACE_SHADE[quad.face] : 1,
sprite: textures_info[quad.texture] ?? textures_info["engine:missing"],
sprite: textures_info[quad.texture] ?? textures_info["cubi:missing"],
light_weights: light_weights(quad.face, quad.positions),
tint: quad_tint(block, quad.variables),
}));
@@ -595,8 +595,8 @@ function fill_fluid_cells(chunks: (Uint32Array | null)[], nid: number, index: nu
function flowing_scale(block: BlockRegistry): number | undefined {
const textures = fluid_textures(block.textures);
if (textures.flowing === textures.still) return undefined;
const still = textures_info[textures.still] ?? textures_info["engine:missing"];
const flowing = textures_info[textures.flowing] ?? textures_info["engine:missing"];
const still = textures_info[textures.still] ?? textures_info["cubi:missing"];
const flowing = textures_info[textures.flowing] ?? textures_info["cubi:missing"];
return Math.min(1, still.width / flowing.width);
}
@@ -619,7 +619,7 @@ function fluid_mesh_quad(
flush: true,
group: flat ? face : UNALIGNED_GROUP,
shade: FACE_SHADE[face],
sprite: textures_info[still ? textures.still : textures.flowing] ?? textures_info["engine:missing"],
sprite: textures_info[still ? textures.still : textures.flowing] ?? textures_info["cubi:missing"],
light_weights: light_weights(face, positions),
tint: quad_tint(block, [still ? "still" : "flowing"]),
};