Browse Source

Bugfix: the default distance of the far plane was too small

customisations
alemart 3 years ago
parent
commit
269ed97b73
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/geometry/view.ts

+ 4
- 4
src/geometry/view.ts View File

26
 import { CameraModel, FX, FY, U0, V0 } from './camera-model';
26
 import { CameraModel, FX, FY, U0, V0 } from './camera-model';
27
 import { IllegalArgumentError } from '../utils/errors';
27
 import { IllegalArgumentError } from '../utils/errors';
28
 
28
 
29
-/** Default distance of the near plane to the optical center of the camera */
30
-const DEFAULT_NEAR = 0.1;
29
+/** Default distance in pixels of the near plane to the optical center of the camera */
30
+const DEFAULT_NEAR = 1;
31
 
31
 
32
-/** Default distance of the far plane to the optical center of the camera */
33
-const DEFAULT_FAR = 2000;
32
+/** Default distance in pixels of the far plane to the optical center of the camera */
33
+const DEFAULT_FAR = 20000;
34
 
34
 
35
 
35
 
36
 
36
 

Loading…
Cancel
Save