mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
33 lines
796 B
C++
33 lines
796 B
C++
#include "Scene.h"
|
|
|
|
string Scene::getName() const { return name; }
|
|
|
|
int Scene::getWidth() { return width; }
|
|
|
|
int Scene::getHeight() { return height; }
|
|
|
|
float Scene::getFov() { return fov; }
|
|
|
|
Vector3f Scene::getCenter() const { return center; }
|
|
|
|
Vector3f Scene::getUpVector() const { return up; }
|
|
|
|
Vector3f Scene::getLookAt() const { return lookAt; }
|
|
|
|
Vector3f Scene::getBackgroundColor() const { return backgroundColor; }
|
|
|
|
void Scene::setRaysPerPixel(const Eigen::VectorXi &raysPerPixel) {
|
|
this->raysPerPixel = raysPerPixel;
|
|
}
|
|
|
|
void Scene::setAntialiasing(bool antialiasing) {
|
|
this->antialiasing = antialiasing;
|
|
}
|
|
|
|
void Scene::setTwoSideRender(bool twoSideRender) {
|
|
this->twoSideRender = twoSideRender;
|
|
}
|
|
|
|
void Scene::setGlobalIllum(bool globalIllum) {
|
|
this->globalIllum = globalIllum;
|
|
}
|