Fixing aspect ratio and fov

This commit is contained in:
STP
2023-11-18 13:14:56 -05:00
parent 9866679dc7
commit ddb4603d07
4 changed files with 39 additions and 17 deletions

View File

@@ -92,6 +92,9 @@ impl Camera {
let direction = view_direction + horizontal + vertical;
let ray = Ray::new(self.eye, Unit::new_normalize(direction));
if i == j {
println!("{}", ray.b.into_inner());
}
rays.push(ray);
}
}