3D scene stable
This commit is contained in:
parent
938616d989
commit
e32e5e77d1
14 changed files with 96 additions and 45 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue