Skip to content

Commit 7a44369

Browse files
committed
Disable frustum culling in 3D perspective mode (only cull in 2D ortho)
1 parent d907ff2 commit 7a44369

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/src/lib/render/canvas3d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,8 +1030,8 @@ export function render3D(
10301030
}
10311031
}
10321032

1033-
// Compute 2D view bounds for frustum culling
1034-
const viewBounds = getViewBounds2D(vp);
1033+
// Compute 2D view bounds for frustum culling (only reliable in ortho/near-ortho mode)
1034+
const viewBounds = orthoBlend > 0.3 ? getViewBounds2D(vp) : null;
10351035

10361036
// Draw geometry
10371037
{

0 commit comments

Comments
 (0)