Use the PerspectiveCamera to generate primary rays.
This commit is contained in:
parent
899064ce42
commit
25b246d3ed
2 changed files with 10 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue