Fluid and item visuals

This commit is contained in:
2026-10-25 18:46:48 -03:00
parent 08df7f1b6b
commit 233c518def
15 changed files with 549 additions and 122 deletions
+2 -2
View File
@@ -149,12 +149,12 @@ export class LevelRenderer {
}
// blocks drawn with code, see client/rendering/visuals.ts. the ones in chunks in view get their on_frame first
render_visuals(level: ClientLevel, partial_tick: number) {
render_visuals(level: ClientLevel, camera: Camera, partial_tick: number) {
if (!this.draw.visuals) return;
level.visuals.frame(this.#visible, level.ticks + partial_tick);
flush_batch();
set_current_texture(level.image.tex);
draw_visuals(level.visuals, level.image);
draw_visuals(level.visuals, level.image, [camera.x, camera.y, camera.z]);
}
// the cracks on the block being broken, and on the ones machines are breaking, drawn over their models' faces like