Geo renderer improvements

This commit is contained in:
2026-11-21 19:24:09 -03:00
parent 717d2cb766
commit 4bdf5203d4
6 changed files with 141 additions and 18 deletions
+7 -1
View File
@@ -31,6 +31,7 @@ import {
push_vertex,
render_debug,
set_current_texture,
set_face_culling,
Texture,
use_texture,
view_projection,
@@ -180,10 +181,15 @@ export class LevelRenderer {
for (const entity of level.entities.values()) {
if (entity instanceof ItemEntity && this.#entity_in_view(entity, partial_tick)) {
render_item_entity(entity, partial_tick);
} else if (entity instanceof RemoteEntity && this.#entity_in_view(entity, partial_tick)) {
}
}
set_face_culling(false);
for (const entity of level.entities.values()) {
if (entity instanceof RemoteEntity && this.#entity_in_view(entity, partial_tick)) {
render_mod_entity(entity, camera, partial_tick);
}
}
set_face_culling(true);
render_block_items(level);
flush_batch();
}