include/scene.h
branchpyrit
changeset 53 228cb8bfdd54
parent 50 14a727b70d07
child 60 a23b5089b9c3
--- 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);
+	};
 };
 
 /**