Render a hand
This commit is contained in:
@@ -4,6 +4,7 @@ import { daylight } from "$/common/time.ts";
|
||||
import { Hud } from "$/client/gui/hud.ts";
|
||||
import { DebugOverlay } from "$/client/gui/debug_overlay.ts";
|
||||
import { LevelRenderer } from "./level_renderer.ts";
|
||||
import { HandRenderer } from "./hand_renderer.ts";
|
||||
|
||||
// the sky at noon and in the middle of the night
|
||||
const DAY_SKY = [0.69, 0.8, 1];
|
||||
@@ -16,6 +17,7 @@ export class GameRenderer {
|
||||
level_renderer = new LevelRenderer();
|
||||
hud = new Hud();
|
||||
debug_overlay = new DebugOverlay();
|
||||
hand = new HandRenderer();
|
||||
// what the lightmap was last made for, so it's only rebuilt when the light changes
|
||||
#lightmap_daylight = -1;
|
||||
|
||||
@@ -43,6 +45,7 @@ export class GameRenderer {
|
||||
this.level_renderer.render_entities(client.level, client.player, partial_tick);
|
||||
this.level_renderer.render_translucent(client.level, camera);
|
||||
end_mode_3d();
|
||||
this.hand.render(client.player.inventories);
|
||||
|
||||
this.hud.render(client);
|
||||
client.screen?.on_render();
|
||||
|
||||
Reference in New Issue
Block a user