mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
add light parser
This commit is contained in:
parent
73b90f7535
commit
e13fd8a438
4 changed files with 46 additions and 2 deletions
|
@ -14,8 +14,10 @@ public:
|
|||
static Scene *getScene(const nlohmann::json &);
|
||||
|
||||
private:
|
||||
static PointLight *getPointLight(const nlohmann::json &);
|
||||
static AreaLight *getAreaLight(const nlohmann::json &);
|
||||
static PointLight *getPointLight(const nlohmann::json &, const Vector3f &,
|
||||
const Vector3f &);
|
||||
static AreaLight *getAreaLight(const nlohmann::json &, const Vector3f &,
|
||||
const Vector3f &);
|
||||
static Rectangle *getRectangle(const nlohmann::json &, float, float, float,
|
||||
const Vector3f &, const Vector3f &,
|
||||
const Vector3f &, float);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue