change RayTracer class constructor param

This commit is contained in:
Shuo Feng 2024-02-01 19:14:20 -05:00
parent 62652955cb
commit 7ede9f694d
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
#include <vector>
RayTracer::RayTracer(nlohmann::json json)
RayTracer::RayTracer(const nlohmann::json &json)
: json(json), scene(Scene(json["output"])) {}
void RayTracer::render() {

View file

@ -6,7 +6,7 @@
class RayTracer {
public:
RayTracer(nlohmann::json);
RayTracer(const nlohmann::json &);
void render();
void run();