aboutsummaryrefslogtreecommitdiff
path: root/core/math/camera_matrix.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2017-09-12 12:55:53 +0200
committerGitHub2017-09-12 12:55:53 +0200
commitaabbd00284640a4789f96702c134ea40b11b402e (patch)
tree8363659a6551644b0d89401681e2909d5451a119 /core/math/camera_matrix.cpp
parentc5e0e31f5106d7d91dc478af1f86740c74cea824 (diff)
parentb2a38854fdde296fd2d7da139a29b23a18ab494d (diff)
downloadgodot-aabbd00284640a4789f96702c134ea40b11b402e.tar.gz
godot-aabbd00284640a4789f96702c134ea40b11b402e.tar.zst
godot-aabbd00284640a4789f96702c134ea40b11b402e.zip
Merge pull request #10908 from hpvb/fix-unused-variables
Fix unused variable warnings
Diffstat (limited to 'core/math/camera_matrix.cpp')
-rw-r--r--core/math/camera_matrix.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/math/camera_matrix.cpp b/core/math/camera_matrix.cpp
index b7a929c8e..7132b6573 100644
--- a/core/math/camera_matrix.cpp
+++ b/core/math/camera_matrix.cpp
@@ -131,7 +131,6 @@ void CameraMatrix::set_perspective(real_t p_fovy_degrees, real_t p_aspect, real_
void CameraMatrix::set_for_hmd(int p_eye, real_t p_aspect, real_t p_intraocular_dist, real_t p_display_width, real_t p_display_to_lens, real_t p_oversample, real_t p_z_near, real_t p_z_far) {
// we first calculate our base frustum on our values without taking our lens magnification into account.
- real_t display_to_eye = 2.0 * p_display_to_lens;
real_t f1 = (p_intraocular_dist * 0.5) / p_display_to_lens;
real_t f2 = ((p_display_width - p_intraocular_dist) * 0.5) / p_display_to_lens;
real_t f3 = (p_display_width / 4.0) / p_display_to_lens;