nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7649766
)
gamnit: move camera default settings to create_scene
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 5 Oct 2017 11:27:58 +0000
(07:27 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 21 Nov 2017 19:02:54 +0000
(14:02 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/gamnit/depth/depth.nit
patch
|
blob
|
history
diff --git
a/lib/gamnit/depth/depth.nit
b/lib/gamnit/depth/depth.nit
index
c180869
..
2e4fc82
100644
(file)
--- a/
lib/gamnit/depth/depth.nit
+++ b/
lib/gamnit/depth/depth.nit
@@
-25,14
+25,19
@@
import shadow
redef class App
- redef fun create_gamnit
+ redef fun create_scene
do
- super
-
# Move the camera back a bit
world_camera.reset_height(10.0)
world_camera.near = 0.1
+ super
+ end
+
+ redef fun create_gamnit
+ do
+ super
+
# Cull the invisible triangles in the back of the geometries
glCullFace gl_BACK