nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f51fb82
)
gamnit: fix setting camera field of view
author
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 5 Sep 2016 14:12:47 +0000
(10:12 -0400)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/gamnit/cameras.nit
b/lib/gamnit/cameras.nit
index
245d071
..
5fa8850
100644
(file)
--- a/
lib/gamnit/cameras.nit
+++ b/
lib/gamnit/cameras.nit
@@
-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