Procházet zdrojové kódy

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

customisations
alemart před 3 roky
rodič
revize
269ed97b73
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4
    4
      src/geometry/view.ts

+ 4
- 4
src/geometry/view.ts Zobrazit soubor

@@ -26,11 +26,11 @@ import { SpeedyMatrix } from 'speedy-vision/types/core/speedy-matrix';
26 26
 import { CameraModel, FX, FY, U0, V0 } from './camera-model';
27 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
 

Načítá se…
Zrušit
Uložit