Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Don't check frustum in ChunkMesh as we're already checking it earlier on
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-makes-code committed Jan 22, 2024
1 parent ef190f8 commit 3688482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/Rendering/World/ChunkRenderSlot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public ChunkMesh(VoxelClient client, Span<BasicVertex.Packed> packedVertices, ui

public void Render() {
//Just in case...
if (Buffer == null || !Client.GameRenderer.MainCamera.Frustum.TestAABB(MeshAABB)) {
if (Buffer == null) {
return;
}

Expand Down

0 comments on commit 3688482

Please sign in to comment.