diff options
author | Kiri Jolly <expiredpopsicle@gmail.com> | 2020-04-04 16:16:11 -0700 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-10 17:19:49 +0200 |
commit | cc27b4560fd6b361934eb863777ba9bada2e5bb8 (patch) | |
tree | 85abadf3154853152fc9ffb49c18a0aaa4a65f01 /core/math/rect2.h | |
parent | 35c8ec065c00666c68d68964c2753a99ffa20b38 (diff) |
Othographic camera in-editor now uses Z near/far settings instead of a hardcoded value
Fixes #18809.
The in-editor ortho camera used a far clipping plane of 8192 units, and was
placed 4096 units away from the camera cursor.
This was far enough to cause culling issues from floating point precision loss
on objects smaller than one unit.
This change modifies the near/far clipping planes of the ortho camera to use
those specified in the editor (and currently used by the perspective camera).
The frustum is still centered around the camera cursor location, as it was
before.
(cherry picked from commit 26912c15e625f234a0528f239bf5e5ab2f858d9a)
Diffstat (limited to 'core/math/rect2.h')
0 files changed, 0 insertions, 0 deletions