Returns a collection of primary rays generated for the given pixel by this camera.
Source
List<Ray> getPrimaryRays(int x, int y) {
Ray ret = new Ray(center, stepX*x.toDouble() + stepY*y.toDouble() + topLeft);
return [ret];
}
Returns a collection of primary rays generated for the given pixel by this camera.
List<Ray> getPrimaryRays(int x, int y) {
Ray ret = new Ray(center, stepX*x.toDouble() + stepY*y.toDouble() + topLeft);
return [ret];
}