]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cameras: invert the correct coordinate to fix up texcoords
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 24 Jun 2010 12:30:09 +0000 (12:30 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 27 Jun 2010 19:55:33 +0000 (21:55 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10247 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=fd7fb6ed9cbba204fa722f8a684784889f463991

gl_rmain.c

index 27e7df8ae0f23b7fe504a40688227f3f4ca20340..32184ded3b8e059db24e998bf2a8494e2860b268 100644 (file)
@@ -7738,7 +7738,7 @@ static void R_Water_ProcessPlanes(void)
                        r_refdef.view.cullface_front = GL_FRONT;
                        r_refdef.view.cullface_back = GL_BACK;
                        // also reverse the view matrix
-                       Matrix4x4_ConcatScale3(&r_refdef.view.matrix, 1, -1, 1);
+                       Matrix4x4_ConcatScale3(&r_refdef.view.matrix, 1, 1, -1); // this serves to invert texcoords in the result, as the copied texture is mapped the wrong way round
                        R_RenderView_UpdateViewVectors();
                        if(p->camera_entity)
                                r_refdef.scene.worldmodel->brush.FatPVS(r_refdef.scene.worldmodel, visorigin, 2, r_refdef.viewcache.world_pvsbits, (r_refdef.viewcache.world_numclusters+7)>>3, false);