working version of the frustum based calculation for the perspective matrix
This commit is contained in:
parent
c793c81ee8
commit
2b3d00f1d4
5 changed files with 113 additions and 17 deletions
|
@ -2,7 +2,6 @@ use bevy::{prelude::*, math::bool, render::primitives::Frustum};
|
|||
use rand::prelude::*;
|
||||
use bevy::render::primitives::Plane;
|
||||
|
||||
|
||||
// pub struct BuildScenePlugin;
|
||||
|
||||
// impl Plugin for BuildScenePlugin {
|
||||
|
@ -69,6 +68,7 @@ fn generalized_projection (
|
|||
_ = 33;
|
||||
// camera.frustum.planes[4]. // should be near
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
pub fn build_scene(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue