3D scene stable

This commit is contained in:
IlyaShurupov 2024-06-18 17:57:42 +03:00 committed by Ilya Shurupov
parent 938616d989
commit e32e5e77d1
14 changed files with 96 additions and 45 deletions

View file

@ -1,7 +1,7 @@
// #include "NewPlacement.hpp"
#include "Rayt.hpp"
#include "RayTracer.hpp"
#include "Timing.hpp"
@ -53,9 +53,11 @@ void printStatus(const halnf* percentage) {
void renderCommand(const std::string& scenePath) {
Scene scene;
RayTracer::RenderSettings settings;
RenderSettings& settings = scene.mRenderSettings;
loadScene(scene, scenePath, settings);
if (!scene.load(scenePath)) {
return;
}
RayTracer::OutputBuffers output;
RayTracer rayt;