working version of the frustum based calculation for the perspective matrix

This commit is contained in:
Hartmut Seichter 2022-12-06 21:12:15 +01:00
parent c793c81ee8
commit 2b3d00f1d4
5 changed files with 113 additions and 17 deletions

View file

@ -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(