Rename engine to cubi
This commit is contained in:
@@ -409,7 +409,7 @@ export function fluid_rgb(fluid: FluidVariant): Vec3 {
|
||||
export function fluid_look(fluid: FluidVariant): { texture: string; tint: Vec3 } {
|
||||
const json = EverythingRegistry.get<FluidJson>("fluids", fluid?.id);
|
||||
if (!json) throw new Error(`there's no fluid ${fluid?.id}`);
|
||||
return { texture: json.texture ?? "engine:missing", tint: fluid_rgb(structuredClone(fluid)) };
|
||||
return { texture: json.texture ?? "cubi:missing", tint: fluid_rgb(structuredClone(fluid)) };
|
||||
}
|
||||
|
||||
// where a model's uv in pixels (0-16) is in the atlas. the atlas's border around each sprite (see ATLAS_BORDER) keeps
|
||||
|
||||
@@ -204,7 +204,7 @@ export class LevelRenderer {
|
||||
return;
|
||||
}
|
||||
const tex = AssetManager.instance.get<Texture>("bworld:textures");
|
||||
const region = get_sprite_region(`engine:break_${stage}`);
|
||||
const region = get_sprite_region(`cubi:break_${stage}`);
|
||||
for (const quad of this.#destroy_quads(info, value)) {
|
||||
push_decal_quad(tex, quad, x, y, z, region);
|
||||
}
|
||||
|
||||
@@ -487,7 +487,7 @@ export function fluid_box(texture: string, tint: number[], from: number[], to: n
|
||||
for (let at = (Math.floor(from[axis] / 16) + 1) * 16; at < to[axis]; at += 16) points.push(at);
|
||||
return [...points, to[axis]];
|
||||
});
|
||||
const model: ModelJson = { id: "engine:fluid_box", textures: { fluid: texture }, elements: [] };
|
||||
const model: ModelJson = { id: "cubi:fluid_box", textures: { fluid: texture }, elements: [] };
|
||||
const quads: InstanceQuad[] = [];
|
||||
for (let i = 0; i < cuts[0].length - 1; i++) {
|
||||
for (let j = 0; j < cuts[1].length - 1; j++) {
|
||||
|
||||
Reference in New Issue
Block a user