diff options
author | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2025-03-04 01:02:17 +0700 |
---|---|---|
committer | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2025-03-04 01:02:17 +0700 |
commit | 9f25ab78396c155a6d73d7c5676d489d7ee66b76 (patch) | |
tree | f2b74a5e5c44244ee2e582dce6a337f7494ba9bf /src/common.rs | |
parent | a89ce343dce62d31fd8dcfe3c1dbec1425423f44 (diff) |
scene
Diffstat (limited to 'src/common.rs')
-rw-r--r-- | src/common.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common.rs b/src/common.rs index 4ea9e72..3e606b1 100644 --- a/src/common.rs +++ b/src/common.rs @@ -3,13 +3,13 @@ use crate::calculus::Interval; // "Ideal" aspect ratio, allowing fraction pub const ASPECT_RATIO: f32 = 16.0 / 9.0; -pub const IMG_WIDTH: usize = 400; +pub const IMG_WIDTH: usize = 800; pub const IMG_HEIGHT: usize = get_image_height(IMG_WIDTH, ASPECT_RATIO); -pub const SAMPLES_PER_PIXEL: usize = 100; +pub const SAMPLES_PER_PIXEL: usize = 500; pub const MAX_DEPTH: usize = 50; -pub const VFOV: f32 = 30.0; +pub const VFOV: f32 = 60.0; 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 }; |