]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
* Preventing player model from being drawn in the reflection as soon as it partially...
authorChristopher Bock <bockchristopher@live.de>
Fri, 11 Mar 2016 07:37:03 +0000 (08:37 +0100)
committerChristopher Bock <bockchristopher@live.de>
Fri, 11 Mar 2016 07:37:03 +0000 (08:37 +0100)
gl_rmain.c

index 35860d4f22e276a0483bd1cea957ac0e5767e1cd..41843baf160dca45b89a4cb19fbc4bc41b8189a0 100644 (file)
@@ -6202,7 +6202,7 @@ static void R_Water_ProcessPlanes(int fbo, rtexture_t *depthtexture, rtexture_t
                                        memset(r_refdef.viewcache.world_pvsbits, 0xFF, r_refdef.scene.worldmodel->brush.num_pvsclusterbytes);
                        }
 
-                       r_fb.water.hideplayer = ((r_water_hideplayer.integer >= 2) && !chase_active.integer);
+                       r_fb.water.hideplayer = ((r_water_hideplayer.integer >= 2) && !chase_active.integer) || (abs(planeDist) < 45);
                        R_ResetViewRendering3D(p->fbo_reflection, r_fb.water.depthtexture, p->texture_reflection);
                        R_ClearScreen(r_refdef.fogenabled);
                        if(r_water_scissormode.integer & 2)