Skip to content

Commit

Permalink
Fixed minor merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDavies8 committed Sep 19, 2024
1 parent 19079f4 commit 7a7c313
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderer.zig
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ pub fn renderWorld(world: *World, ambientLight: Vec3f, skyColor: Vec3f) void { /

// Uses FrustumCulling on the chunks.
const frustum = Frustum.init(Vec3f{ 0, 0, 0 }, camera.viewMatrix, lastFov, lastWidth, lastHeight);
_ = frustum;

const time: u32 = @intCast(std.time.milliTimestamp() & std.math.maxInt(u32));

Expand All @@ -184,7 +183,7 @@ pub fn renderWorld(world: *World, ambientLight: Vec3f, skyColor: Vec3f) void { /

chunk_meshing.quadsDrawn = 0;
chunk_meshing.transparentQuadsDrawn = 0;
const meshes = mesh_storage.updateAndGetRenderChunks(world.conn, lookOrigin, settings.renderDistance);
const meshes = mesh_storage.updateAndGetRenderChunks(world.conn, &frustum, lookOrigin, settings.renderDistance);

gpu_performance_measuring.startQuery(.chunk_rendering_preparation);
MeshSelection.select(lookOrigin, lookDirection, game.Player.inventory__SEND_CHANGES_TO_SERVER.items[game.Player.selectedSlot]);
Expand Down

0 comments on commit 7a7c313

Please sign in to comment.