aboutsummaryrefslogtreecommitdiff
path: root/src/raytracer/raytracer.cpp
diff options
context:
space:
mode:
authorFate Bussey <lafayette_bussey@brown.edu>2023-12-12 14:04:17 -0500
committerFate Bussey <lafayette_bussey@brown.edu>2023-12-12 14:04:17 -0500
commitba17c6e047e817078b433838a2aedbe5d3ce1d21 (patch)
tree56b8946e1aad840d7c575eaa3943bd07c74f33c0 /src/raytracer/raytracer.cpp
parent2117034251eaa124ec9c6bec4524e490a0ee9ec0 (diff)
parent33082ca5ec4c20d34b79b3b1f24f3b3152db2816 (diff)
normals complete
Diffstat (limited to 'src/raytracer/raytracer.cpp')
-rw-r--r--src/raytracer/raytracer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/raytracer/raytracer.cpp b/src/raytracer/raytracer.cpp
index b393d40..fa949eb 100644
--- a/src/raytracer/raytracer.cpp
+++ b/src/raytracer/raytracer.cpp
@@ -63,6 +63,7 @@ void RayTracer::render(RGBA *imageData, const RayTraceScene &scene) {
}
}
}
+ settings.rotation += 0.5f;
}
@@ -227,6 +228,10 @@ void RayTracer::settingsChanged(QLabel* imageLabel) {
QImage flippedImage = image.mirrored(false, false);
flippedImage = flippedImage.scaled(width, height, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
imageLabel->setPixmap(QPixmap::fromImage(flippedImage));
+ // QTimer::singleShot(3500, this, [this, imageLabel]() {
+ // // This code will be executed after a 2-second delay
+ // emit rotationChanged(settings.rotation);
+ // });
}
void RayTracer::keyPressEvent(QKeyEvent *event) {