summaryrefslogtreecommitdiff
path: root/src/camera.rs
diff options
context:
space:
mode:
authorRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-02 15:00:40 +0700
committerRosyid Haryadi <rosyid_haryadi@protonmail.com>2025-03-02 15:00:40 +0700
commitd618968b9577cbaf6306f42157be19bd2a6a6aa0 (patch)
tree4f94cde6fb180393f9d8eabc9f86730e51c42cb5 /src/camera.rs
parentd0e7b955bc93423808990c3e86214340bbb28600 (diff)
upd gamma correction
Diffstat (limited to 'src/camera.rs')
-rw-r--r--src/camera.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/camera.rs b/src/camera.rs
index a082f34..63e0097 100644
--- a/src/camera.rs
+++ b/src/camera.rs
@@ -1,5 +1,5 @@
use crate::calculus::calculus::{sample_square, Point3, Ray, Vec3};
-use crate::common::{get_image_height, Color, DisplayBuffer, Pixel, ASPECT_RATIO, CAMERA_CENTER, FOCAL_LENGTH, IMG_WIDTH, SAMPLES_PER_PIXEL, VIEWPORT_HEIGHT};
+use crate::common::{get_image_height, Color, DisplayBuffer, Pixel, ASPECT_RATIO, CAMERA_CENTER, FOCAL_LENGTH, IMG_WIDTH, MAX_DEPTH, SAMPLES_PER_PIXEL, VIEWPORT_HEIGHT};
use crate::interval::Interval;
use crate::object::{HitRecord, Hittable, HittableList};
@@ -46,7 +46,7 @@ impl Camera {
&delta_pixel_u.add(&delta_pixel_u).scalar_mul(0.5)
);
- let max_depth = 50;
+ let max_depth = MAX_DEPTH;
Self {
aspect_ratio,