From 099dee35f47db3e293cb8e60287ffe6a44f3d5d4 Mon Sep 17 00:00:00 2001 From: reduz Date: Sun, 17 Jan 2021 13:25:38 -0300 Subject: Added GPU based cluster builder Clustering is now GPU based, uses an implementation based on the Activision algorithm. --- core/math/camera_matrix.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/math/camera_matrix.h') diff --git a/core/math/camera_matrix.h b/core/math/camera_matrix.h index 03068bc7ea..3f327d3bc4 100644 --- a/core/math/camera_matrix.h +++ b/core/math/camera_matrix.h @@ -59,6 +59,7 @@ struct CameraMatrix { void set_orthogonal(real_t p_size, real_t p_aspect, real_t p_znear, real_t p_zfar, bool p_flip_fov = false); void set_frustum(real_t p_left, real_t p_right, real_t p_bottom, real_t p_top, real_t p_near, real_t p_far); void set_frustum(real_t p_size, real_t p_aspect, Vector2 p_offset, real_t p_near, real_t p_far, bool p_flip_fov = false); + void adjust_perspective_znear(real_t p_new_znear); static real_t get_fovy(real_t p_fovx, real_t p_aspect) { return Math::rad2deg(Math::atan(p_aspect * Math::tan(Math::deg2rad(p_fovx) * 0.5)) * 2.0); -- cgit v1.2.3