This commit is contained in:
griffi-gh 2023-01-18 02:50:45 +01:00
parent d06c0b2a96
commit 946ce319ab

View file

@ -83,6 +83,7 @@ impl Camera {
];
}
// https://www.flipcode.com/archives/Frustum_Culling.shtml
// https://web.archive.org/web/20070226173353/https://www2.ravensoft.com/users/ggribb/plane%20extraction.pdf
pub fn frustum_planes(&self, normalized: bool) -> [[f32; 4]; 6] {
let mut p_planes = [[0.0_f32; 4]; 6];