Fluid and item visuals
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user