text3d
[carveJwlIkooP6JGAAIwe30JlM.git] / world_render.h
index 811e6a447bf5cd4e287d75c3bf5a46375fdaa042..e04a6bb85455da4aaebecc7b71bc5cccf175705a 100644 (file)
@@ -48,9 +48,6 @@ VG_STATIC void world_render_init(void)
          fb->fixed_h = 1024;
          fb->resolution_div = 0;
 
-         /* TODO: We could get away with this being R16u, and just have it be 
-          *       a normed value between min and max of the bounding box Y */
-
          fb->attachments[0].display_name     = NULL;
          fb->attachments[0].purpose = k_framebuffer_attachment_type_colour;
          fb->attachments[0].internalformat   = GL_RG16F;
@@ -376,6 +373,10 @@ VG_STATIC void render_world_gates( world_instance *world, camera *cam,
 #else
       render_gate( world, gate, cam, layer_depth );
 #endif
+
+      /* should really be set in fixed update since its used in the physics
+       * of most systems. too bad! */
+      world->rendering_gate = gate;
    }
 }