+ glViewport( 0,0, vg.window_x, vg.window_y );
+ player__render( &small_cam, &localplayer );
+}
+
+VG_STATIC void render_scene(void)
+{
+ render_fb_bind( gpipeline.fb_main, 1 );
+ glClearColor( 0.0f, 0.0f, 0.0f, 1.0f );
+ glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT );
+
+ /* Draw world */
+ glEnable( GL_DEPTH_TEST );
+
+ world_instance *view_world = localplayer.viewable_world;
+
+ if( view_world == NULL ){
+ glClearColor( 0.25f, 0.25f, 0.0f, 1.0f );
+ glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT );
+ return;
+ }
+
+ world_prerender( view_world );
+ render_world( view_world, &main_camera, 0 );
+
+ render_water_texture( view_world, &main_camera, 0 );
+ render_fb_bind( gpipeline.fb_main, 1 );
+ render_water_surface( view_world, &main_camera );
+}
+
+VG_STATIC void render_scene_gate_subview(void)
+{
+ render_fb_bind( gpipeline.fb_main, 1 );
+ world_instance *view_world = localplayer.viewable_world;
+
+ int depth = 1;
+ if( localplayer.gate_waiting ) depth = 0;
+ render_world_gates( view_world, &main_camera, depth );
+}
+
+VG_STATIC void render_main_game(void)
+{
+#if 0
+ static float fov = 60.0f;
+ float fov_target = vg_lerpf( 90.0f, 110.0f, cl_fov );
+
+ if( player.controller == k_player_controller_skate )
+ fov_target = vg_lerpf( 97.0f, 135.0f, cl_fov );