add light parser

This commit is contained in:
Shuo Feng 2024-02-18 20:52:59 -05:00
parent 73b90f7535
commit e13fd8a438
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1
4 changed files with 46 additions and 2 deletions

View file

@ -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);