소스 검색

Forgot to apply oversampling to Y

Bastiaan Olij 7 년 전
부모
커밋
4f9dac5bb1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      core/math/camera_matrix.cpp

+ 1 - 0
core/math/camera_matrix.cpp

@@ -140,6 +140,7 @@ void CameraMatrix::set_for_hmd(int p_eye, real_t p_aspect, real_t p_intraocular_
 	real_t add = ((f1 + f2) * (p_oversample - 1.0)) / 2.0;
 	f1 += add;
 	f2 += add;
+	f3 *= p_oversample;
 
 	// always apply KEEP_WIDTH aspect ratio
 	f3 *= p_aspect;