diff -r a6413a3d741d -r 228cb8bfdd54 include/scene.h --- a/include/scene.h Fri Mar 28 23:30:04 2008 +0100 +++ b/include/scene.h Sat Mar 29 02:17:22 2008 +0100 @@ -74,7 +74,12 @@ void rotate(const Quaternion &q); void move(const Float fw, const Float left, const Float up); - Ray makeRay(Sample *samp); + Ray makeRay(Sample &samp) + { + Vector3 dir = p + (u*samp.x - v*samp.y)*F; + dir.normalize(); + return Ray(eye, dir); + }; }; /**