diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-01-22 22:02:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 22:02:09 +0100 |
commit | 37897dba80ae88785ca1cc7e0a717a6b15081a5b (patch) | |
tree | a5f03261aac00dd417b6e3ce731527da078d6e26 /core/math/camera_matrix.h | |
parent | 91b0be18dcc3ba3b1ecd35e8a7e416883776cf7b (diff) | |
parent | eaf8e5ce52331d05ee117c21e114ab0990dd3a9b (diff) | |
download | redot-engine-37897dba80ae88785ca1cc7e0a717a6b15081a5b.tar.gz |
Merge pull request #35406 from lawnjelly/ortho-shadow
Replace CameraMatrix::get_viewport_size with get_viewport_half_extents, shadow culling with ortho camera and other affected issues
Diffstat (limited to 'core/math/camera_matrix.h')
-rw-r--r-- | core/math/camera_matrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/camera_matrix.h b/core/math/camera_matrix.h index 59e34c0855..2eed6d25d6 100644 --- a/core/math/camera_matrix.h +++ b/core/math/camera_matrix.h @@ -73,7 +73,7 @@ struct CameraMatrix { Vector<Plane> get_projection_planes(const Transform &p_transform) const; bool get_endpoints(const Transform &p_transform, Vector3 *p_8points) const; - void get_viewport_size(real_t &r_width, real_t &r_height) const; + Vector2 get_viewport_half_extents() const; void invert(); CameraMatrix inverse() const; |