Use the PerspectiveCamera to generate primary rays.

This commit is contained in:
Eryn Wells 2014-07-16 23:32:44 -07:00
parent 899064ce42
commit 25b246d3ed
2 changed files with 10 additions and 5 deletions

View file

@ -14,6 +14,7 @@
#include <list>
#include <string>
#include "basics.h"
#include "camera.h"
class AmbientLight;
@ -49,6 +50,8 @@ private:
// Pixel dimensions of the image.
int width, height;
Camera *camera;
/*
* Ray tracing parameters. max_depth indicates the maximum depth of the ray tree. min_weight indicates the minimum
* specular weight to apply before giving up.