Add a perspective camera

Finally! :D Verified (mostly) and carefully thought through by looking at the
Pov-Ray code and doing the linear algebra by hand. Fun times.
This commit is contained in:
Eryn Wells 2014-07-16 23:31:39 -07:00
parent 360bc52080
commit 899064ce42
2 changed files with 29 additions and 0 deletions

View file

@ -44,7 +44,14 @@ private:
Vector3 direction;
Vector3 mRight;
Vector3 mUp;
};
class PerspectiveCamera
: public Camera
{
Ray compute_primary_ray(const int x, const int width,
const int y, const int height) const;
};