Update the call signature of compute_primary_ray

It takes the current X and Y coordinates and the height and width of the image.
This commit is contained in:
Eryn Wells 2014-07-16 23:29:54 -07:00
parent 05327fbe7a
commit 0e1106aa41
2 changed files with 8 additions and 4 deletions

View file

@ -120,8 +120,10 @@ Camera::SetUp(const Vector3& up)
* the view into the scene.
*/
Ray
OrthographicCamera::compute_primary_ray(const int &x,
const int &y)
OrthographicCamera::compute_primary_ray(const int x,
const int width,
const int y,
const int height)
const
{
// Calculate the point on the image plane that the given (x,y) coordinate pair corresponds to.