cloudy-raytracer/camera/perspectivecamera.cpp

11 lines
344 B
C++
Raw Normal View History

2022-10-28 09:31:13 +02:00
#include "camera/perspectivecamera.h"
PerspectiveCamera::PerspectiveCamera() : forwardDirection(0, 0, 1), upDirection(0, 1, 0), fovAngle(70) {}
Ray PerspectiveCamera::createRay(float x, float y) const {
// IMPLEMENT ME!
// Set up a left-handed coordinate system,
// in which the camera looks along the positive z-Axis
return Ray();
}