From b4f50256edcbb66e831ee910c8f3af331457ceda Mon Sep 17 00:00:00 2001 From: sotech117 Date: Tue, 12 Dec 2023 22:57:38 -0500 Subject: update aspect ratio to be 3 dimensional --- src/accelerate/myqtconcurrent.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/accelerate') diff --git a/src/accelerate/myqtconcurrent.cpp b/src/accelerate/myqtconcurrent.cpp index 211317b..686d28f 100644 --- a/src/accelerate/myqtconcurrent.cpp +++ b/src/accelerate/myqtconcurrent.cpp @@ -18,6 +18,7 @@ void RayTracer::renderParallel(RGBA *imageData, const RayTraceScene &scene) float cameraDepth = 1.f; float viewplaneHeight = 2.f*cameraDepth*std::tan(camera.getHeightAngle() / 2.f); float viewplaneWidth = cameraDepth*viewplaneHeight*((float)scene.width()/(float)scene.height()); + float viewplaneDepth = cameraDepth*viewplaneHeight * ((float)scene.depth() / (float)scene.height()); QList l{}; // for (int imageRow = 0; imageRow < scene.height(); imageRow++) { -- cgit v1.2.3-70-g09d2