lib/gamnit: divide frame_core_flat in 2 parts to draw particles in between
[nit.git] / lib / gamnit / depth / depth.nit
index 9eed0e6..12d0f15 100644 (file)
@@ -56,11 +56,13 @@ redef class App
                        end
                end
 
+               frame_core_world_sprites display
+
                # Toggle writing to the depth buffer for particles effects
                glDepthMask false
                for system in particle_systems do system.draw
                glDepthMask true
 
-               frame_core_flat display
+               frame_core_ui_sprites display
        end
 end