mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
reformat rt
This commit is contained in:
parent
368039b57c
commit
9aaed2d6e8
3 changed files with 41 additions and 41 deletions
24
src/Scene.cc
24
src/Scene.cc
|
@ -1,33 +1,33 @@
|
|||
#include "Scene.h"
|
||||
|
||||
string Scene::getName() const { return name; }
|
||||
string Scene::name() const { return name_; }
|
||||
|
||||
int Scene::getWidth() { return width; }
|
||||
int Scene::width() { return width_; }
|
||||
|
||||
int Scene::getHeight() { return height; }
|
||||
int Scene::height() { return height_; }
|
||||
|
||||
float Scene::getFov() { return fov; }
|
||||
float Scene::fov() { return fov_; }
|
||||
|
||||
Vector3f Scene::getCenter() const { return center; }
|
||||
Vector3f Scene::center() const { return center_; }
|
||||
|
||||
Vector3f Scene::getUpVector() const { return up; }
|
||||
Vector3f Scene::up() const { return up_; }
|
||||
|
||||
Vector3f Scene::getLookAt() const { return lookAt; }
|
||||
Vector3f Scene::lookAt() const { return lookAt_; }
|
||||
|
||||
Vector3f Scene::getBackgroundColor() const { return backgroundColor; }
|
||||
Vector3f Scene::backgroundColor() const { return bgc_; }
|
||||
|
||||
void Scene::setRaysPerPixel(const Eigen::VectorXi &raysPerPixel) {
|
||||
this->raysPerPixel = raysPerPixel;
|
||||
this->raysPerPixel_ = raysPerPixel;
|
||||
}
|
||||
|
||||
void Scene::setAntialiasing(bool antialiasing) {
|
||||
this->antialiasing = antialiasing;
|
||||
this->antialiasing_ = antialiasing;
|
||||
}
|
||||
|
||||
void Scene::setTwoSideRender(bool twoSideRender) {
|
||||
this->twoSideRender = twoSideRender;
|
||||
this->twoSideRender_ = twoSideRender;
|
||||
}
|
||||
|
||||
void Scene::setGlobalIllum(bool globalIllum) {
|
||||
this->globalIllum = globalIllum;
|
||||
this->globalIllum_ = globalIllum;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue