diff options
Diffstat (limited to 'src/common.rs')
-rw-r--r-- | src/common.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/common.rs b/src/common.rs index 3f111ec..d591207 100644 --- a/src/common.rs +++ b/src/common.rs @@ -6,10 +6,6 @@ pub const ASPECT_RATIO: f32 = 16.0 / 9.0; pub const IMG_WIDTH: usize = 400; pub const IMG_HEIGHT: usize = get_image_height(IMG_WIDTH, ASPECT_RATIO); -pub const VIEWPORT_HEIGHT: f32 = 2.0; -pub const FOCAL_LENGTH: f32 = 1.0; -pub const CAMERA_CENTER: Point3 = Point3 { x: 0.0, y: 0.0, z: 0.0 }; - pub const SAMPLES_PER_PIXEL: usize = 100; pub const MAX_DEPTH: usize = 50; @@ -18,7 +14,7 @@ pub const LOOK_FROM: Point3 = Point3 { x: -2.0, y: 2.0, z: 1.0 }; pub const LOOK_AT: Point3 = Point3 { x: 0.0, y: 0.0, z: -1.0 }; pub const VUP: Vec3 = Vec3 { x: 0.0, y: 1.0, z: 0.0 }; -pub const DEFOCUS_ANGLE: f32 = 10.0; +pub const DEFOCUS_ANGLE: f32 = 0.0; pub const FOCUS_DIST: f32 = 4.0; pub const fn get_image_height(image_width: usize, aspect_ratio: f32) -> usize { |