From 2c98cc7791d4799add29fa5046b50ac1689864b4 Mon Sep 17 00:00:00 2001 From: CJSatnarine Date: Sat, 12 Oct 2024 11:27:03 -0400 Subject: [PATCH] Minor change --- README.md | 5 ----- camera.h | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index 434374b..e195ab7 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,6 @@ And to run the build: You'll need an image viewer to view the PPM file. I used [feh](https://feh.finalrewind.org/). -# :scroll: To Do -A list of things I wish to implement: -- [ ] Triangle - - # :book: Resources Used [_Ray Tracing in One Weekend_](https://raytracing.github.io/books/RayTracingInOneWeekend.html) diff --git a/camera.h b/camera.h index ed3e6d2..db4a4cc 100644 --- a/camera.h +++ b/camera.h @@ -94,9 +94,7 @@ class camera { // Construct a camera ray originating from the origin and directed at randomly sampled point around the pixel location i, j. auto offset = sampleSquare(); - auto pixelSample = pixel00Location - + ((i + offset.x()) * pixelDeltaU) - + ((j + offset.y()) * pixelDeltaV); + auto pixelSample = pixel00Location + ((i + offset.x()) * pixelDeltaU) + ((j + offset.y()) * pixelDeltaV); auto rayOrigin = (defocusAngle <= 0) ? centre : defocusDiskSample(); auto rayDirection = pixelSample - rayOrigin;