Shadows, New rays and niceness

This commit is contained in:
2023-11-26 04:19:25 -05:00
parent 4e67bbef8d
commit 2e70fc9a68
11 changed files with 284 additions and 198 deletions
+3 -8
View File
@@ -1,9 +1,4 @@
use crate::ray::Ray;
use crate::{EPSILON, INFINITY};
use nalgebra::{Matrix4, Perspective3, Point3, Unit, Vector3};
const ZNEAR: f64 = EPSILON;
const ZFAR: f64 = INFINITY;
use nalgebra::{Matrix4, Point3, Vector3};
#[allow(dead_code)]
#[derive(Clone)]
@@ -11,8 +6,8 @@ pub struct Camera {
eye: Point3<f64>,
target: Point3<f64>,
up: Vector3<f64>,
view: Matrix4<f64>,
inv_view: Matrix4<f64>,
pub view: Matrix4<f64>,
pub inv_view: Matrix4<f64>,
}
#[allow(dead_code)]