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

@ -7,6 +7,7 @@
use crate::scene::*;
use crate::utils::*;
use crate::viewer::*;
use bevy::{prelude::*, window::PresentMode, render::camera::CameraProjectionPlugin};
use offaxis::{offaxis_camera_setup, OffAxisProjection};
@ -15,6 +16,7 @@ mod offaxis;
mod scene;
mod screeninfo;
mod utils;
mod viewer;
fn main() {
App::new()
@ -38,6 +40,7 @@ fn main() {
.add_startup_system(offaxis_camera_setup)
.add_plugin(CameraProjectionPlugin::<OffAxisProjection>::default())
.add_system(update_offaxis)
.add_system(simulate_viewer)
.run();
}