Skip to content

Commit 7f1a442

Browse files
committed
remove unnecessary limit on _farZ
1 parent a71983e commit 7f1a442

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/geo/projection/mercator_transform.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,7 @@ export class MercatorTransform implements ITransform {
611611
// Calculate z distance of the farthest fragment that should be rendered.
612612
// Add a bit extra to avoid precision problems when a fragment's distance is exactly `furthestDistance`
613613
const topHalfMinDistance = Math.min(topHalfSurfaceDistance, topHalfSurfaceDistanceHorizon);
614-
const maxRenderDistancePixels = 100 * this._cameraToCenterDistance;
615-
this._farZ = Math.min(maxRenderDistancePixels, (Math.cos(Math.PI / 2 - limitedPitchRadians) * topHalfMinDistance + lowestPlane) * 1.01);
614+
this._farZ = (Math.cos(Math.PI / 2 - limitedPitchRadians) * topHalfMinDistance + lowestPlane) * 1.01;
616615

617616
// The larger the value of nearZ is
618617
// - the more depth precision is available for features (good)

0 commit comments

Comments
 (0)