mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 23:32:00 +00:00
bugfix:
This commit is contained in:
parent
f7e2ad664b
commit
271f213969
3 changed files with 26 additions and 35 deletions
|
@ -39,8 +39,8 @@ Scene *Parser::getScene(const nlohmann::json &j) {
|
|||
sc->setAntialiasing(j.value("antialiasing", false));
|
||||
sc->setTwoSideRender(j.value("twosiderender", false));
|
||||
sc->setGlobalIllum(j.value("globalillum", false));
|
||||
sc->setMaxBounce(j.value("maxbounce", 3));
|
||||
sc->setProbTerminate(j.value("probTerminate", 0.33f));
|
||||
sc->setMaxBounce(j.value("maxbounces", 3));
|
||||
sc->setProbTerminate(j.value("probterminate", 0.33f));
|
||||
if (j.contains("raysperpixel"))
|
||||
sc->setRaysPerPixel(getRpp(j["raysperpixel"]));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue