Added all new primitives

This commit is contained in:
2023-11-27 21:37:00 -05:00
parent 5aa73bcc1a
commit 2757ce9730
7 changed files with 674 additions and 147 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ impl Camera {
/// Create a unit camera with default parameters
pub fn unit() -> Self {
let eye = Point3::new(0.0, 0.0, 2.0);
let eye = Point3::new(2.0, 2.0, 2.0);
let target = Point3::new(0.0, 0.0, 0.0);
let up = Vector3::new(0.0, 1.0, 0.0);
Camera::new(eye, target, up)