fuck you, you cant put your couch there
[carveJwlIkooP6JGAAIwe30JlM.git] / world_gate.h
index f2a383c1f2856aea16a060f686d9e2f638bb52fa..93322aaa0af11392955e34af7f6d604b671f7e3b 100644 (file)
@@ -67,7 +67,7 @@ VG_STATIC void world_gates_init(void)
 }
 
 VG_STATIC int render_gate( world_instance *world_inside,
-                           ent_gate *gate, camera *cam )
+                           ent_gate *gate, camera *cam, int layer_depth )
 {
    v3f viewdir, gatedir;
    m3x3_mulv( cam->transform, (v3f){0.0f,0.0f,-1.0f}, viewdir );
@@ -151,12 +151,12 @@ VG_STATIC int render_gate( world_instance *world_inside,
       glStencilMask( 0x00 ); 
    }
 
-   render_world( world_inside, &gate_camera );
+   render_world( world_inside, &gate_camera, layer_depth );
 
    {
       glDisable( GL_STENCIL_TEST );
 
-      render_water_texture( world_inside, &gate_camera );
+      render_water_texture( world_inside, &gate_camera, layer_depth );
       render_fb_bind( gpipeline.fb_main );
 
       glEnable( GL_STENCIL_TEST );