Skip to content

Commit 3354395

Browse files
fix: avoid flickering at far distances
Decrease frustum depth to avoid flickering at far distances.
1 parent 23349c4 commit 3354395

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/render/RenderCamera.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ export class RenderCamera {
112112
this._perspective = new THREE.PerspectiveCamera(
113113
this._initialFov,
114114
this._computeAspect(elementWidth, elementHeight),
115-
1e-3,
116-
1e6);
115+
1e-1,
116+
1e4);
117117
this._perspective.position.copy(this._camera.position);
118118
this._perspective.up.copy(this._camera.up);
119119
this._perspective.lookAt(this._camera.lookat);

0 commit comments

Comments
 (0)