File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments