Benchmark

This commit is contained in:
2026-10-28 11:42:58 -03:00
parent e5221ba681
commit 8fc08ab41e
15 changed files with 1356 additions and 41 deletions
+6 -1
View File
@@ -24,7 +24,12 @@ const TEXT_LIFT = 0.002;
// names over other players' heads, always facing the camera like minecraft's. drawn after translucent terrain since
// the plate is see through. they're full bright, so they can be read in the dark
export function render_nameplates(level: ClientLevel, camera: Camera, camera_entity: Entity, partial_tick: number) {
export function render_nameplates(
level: ClientLevel,
camera: Camera,
camera_entity: Entity | undefined,
partial_tick: number,
) {
const cos_yaw = Math.cos(camera.yaw);
const sin_yaw = Math.sin(camera.yaw);
const cos_pitch = Math.cos(camera.pitch);