]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 24 Jun 2010 12:30:09 +0000 (12:30 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10247 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 834fd650cf47ac3007bd436ed2d42b36e88f1b81..cca82116972051ff26b62dc3088654d9f7a8288f 100644 (file)
@@ -7702,7 +7702,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);