mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-08-15 02:18:03 +00:00
update RT class
This commit is contained in:
parent
e308c901f5
commit
2f4d439e97
2 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
||||||
#include "RayTracer.h"
|
#include "RayTracer.h"
|
||||||
#include "../external/simpleppm.h"
|
#include "../external/simpleppm.h"
|
||||||
|
#include "Parser.h"
|
||||||
|
#include "Scene.h"
|
||||||
|
|
||||||
RayTracer::RayTracer(const nlohmann::json &json) : json(json) {}
|
void RayTracer::run() {
|
||||||
|
nlohmann::json sceneJson = this->json["output"][0];
|
||||||
void RayTracer::run() {}
|
Scene *sc = Parser::getScene(sceneJson);
|
||||||
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
class RayTracer {
|
class RayTracer {
|
||||||
public:
|
public:
|
||||||
RayTracer(const nlohmann::json &);
|
RayTracer(const nlohmann::json &j) : json(j) {}
|
||||||
void run();
|
void run();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue