gamnit: move camera default settings to create_scene
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 5 Oct 2017 11:27:58 +0000 (07:27 -0400)
committerAlexis 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

index c180869..2e4fc82 100644 (file)
@@ -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