diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-12-13 00:20:37 -0500 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-12-13 00:20:41 -0500 |
commit | ab87941ad346b0e09b7855ad834379f425538455 (patch) | |
tree | 0f23bdbe37a759733914a256e620582191db1e83 /src | |
parent | 9d468499ad472e7c7dd32c5774fc685938101a4d (diff) |
testing slice
Diffstat (limited to 'src')
-rw-r--r-- | src/accelerate/myqtconcurrent.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/accelerate/myqtconcurrent.cpp b/src/accelerate/myqtconcurrent.cpp index de83f8a..9f51cdd 100644 --- a/src/accelerate/myqtconcurrent.cpp +++ b/src/accelerate/myqtconcurrent.cpp @@ -3,6 +3,7 @@ #include <QtConcurrent> #include "../raytracer/raytracer.h" #include "../vec4ops/vec4ops.h" +#include "settings.h" struct pixelRoutineArgs { glm::vec4 pCamera; @@ -69,6 +70,8 @@ void RayTracer::renderParallel(RGBA *imageData, const RayTraceScene &scene) QtConcurrent::blockingMap(l, pixelRoutine); // get the slice relating to z == 0 and set it into int the iamge data array + + // int currentSlice = settings.w + 100.f * (5.f / 2.f); int currentSlice = 0; int ptr = currentSlice * scene.width() * scene.height(); for (int i = 0; i < scene.width() * scene.height(); i++) { |