gamnit: fix setting camera field of view
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 5 Sep 2016 14:12:47 +0000 (10:12 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 5 Sep 2016 15:35:38 +0000 (11:35 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/cameras.nit

index 245d071..5fa8850 100644 (file)
@@ -133,7 +133,7 @@ class EulerCamera
                view = view * rotation_matrix
 
                # Use a projection matrix with a depth
-               var projection = new Matrix.perspective(pi*field_of_view_y/2.0,
+               var projection = new Matrix.perspective(field_of_view_y,
                        display.aspect_ratio, near, far)
 
                return view * projection