Просмотр исходного кода

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

customisations
alemart 3 лет назад
Родитель
Сommit
269ed97b73
1 измененных файлов: 4 добавлений и 4 удалений
  1. 4
    4
      src/geometry/view.ts

+ 4
- 4
src/geometry/view.ts Просмотреть файл

@@ -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
 

Загрузка…
Отмена
Сохранить