Merge pull request #13919 from BastiaanOlij/fix_y_oversample

Forgot to apply oversampling to Y
This commit is contained in:
Rémi Verschelde 2017-12-03 12:43:21 +01:00 committed by GitHub
commit 889d262736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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