From e00ab4059c2887c1568be6ea3c970eb94ed7791c Mon Sep 17 00:00:00 2001 From: IlyaShurupov Date: Mon, 16 Oct 2023 16:24:31 +0300 Subject: [PATCH] tmp --- RayTracer/applications/Rayt.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RayTracer/applications/Rayt.cpp b/RayTracer/applications/Rayt.cpp index 79fb5b2..59088bb 100644 --- a/RayTracer/applications/Rayt.cpp +++ b/RayTracer/applications/Rayt.cpp @@ -2,6 +2,7 @@ // #include "NewPlacement.hpp" #include "Buffer.hpp" +#include "CommandLine.hpp" #include "RayTracer.hpp" #include "Strings.hpp" #include "Timing.hpp" @@ -74,8 +75,8 @@ void renderCommand(const String& scenePath, RayTracer::RenderBuffer::Index2D siz scene.mCamera.lookAtPoint({0, 0, 0}, {-3, -3, 3}, {1, 1, 1}); scene.mCamera.setFOV(3.14 / 4); - scene.mCamera.setRatio((halnf) size.y / (halnf) size.x); scene.mCamera.setFar(100); + scene.mCamera.setRatio((halnf) size.y / (halnf) size.x); RayTracer::RenderBuffer output; output.reserve(size); @@ -93,7 +94,7 @@ void renderCommand(const String& scenePath, RayTracer::RenderBuffer::Index2D siz writeImage(output); } -int main() { +int main(int argc, const char** argv) { tp::ModuleManifest* deps[] = {&gModuleRayTracer, nullptr}; tp::ModuleManifest module("Rayt", nullptr, nullptr, deps);