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
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue