mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
work on global illum
This commit is contained in:
parent
75faed07cc
commit
1c06958238
4 changed files with 31 additions and 3 deletions
10
src/Scene.cc
10
src/Scene.cc
|
@ -12,6 +12,10 @@ float Scene::fov() { return fov_; }
|
|||
|
||||
bool Scene::globalIllum() { return globalIllum_; }
|
||||
|
||||
int Scene::maxBounce() { return maxBounce_; }
|
||||
|
||||
float Scene::probTerminate() { return probTerminate_; }
|
||||
|
||||
Eigen::VectorXi Scene::raysPerPixel() const { return raysPerPixel_; }
|
||||
|
||||
Vector3f Scene::ai() const { return ai_; }
|
||||
|
@ -39,3 +43,9 @@ void Scene::setTwoSideRender(bool twoSideRender) {
|
|||
void Scene::setGlobalIllum(bool globalIllum) {
|
||||
this->globalIllum_ = globalIllum;
|
||||
}
|
||||
|
||||
void Scene::setMaxBounce(int maxBounce) { this->maxBounce_ = maxBounce; }
|
||||
|
||||
void Scene::setProbTerminate(float probTerminate) {
|
||||
this->probTerminate_ = probTerminate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue