From: havoc Date: Thu, 8 Sep 2005 09:12:16 +0000 (+0000) Subject: removed distortion textures formerly used by GF3 water shader, this frees up 128K... X-Git-Tag: xonotic-v0.1.0preview~4577 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=30d0492aa1b4c2198e3d522dc0720a7eb7150176;p=xonotic%2Fdarkplaces.git removed distortion textures formerly used by GF3 water shader, this frees up 128K of texture memory git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5698 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index fb0821df..33f58d26 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -120,7 +120,6 @@ rtexture_t *r_texture_notexture; rtexture_t *r_texture_whitecube; rtexture_t *r_texture_normalizationcube; rtexture_t *r_texture_detailtextures[NUM_DETAILTEXTURES]; -rtexture_t *r_texture_distorttexture[64]; void R_ModulateColors(float *in, float *out, int verts, float r, float g, float b) { @@ -269,54 +268,6 @@ static void R_BuildDetailTextures (void) Mem_Free(data); } -static qbyte R_MorphDistortTexture (double y0, double y1, double y2, double y3, double morph) -{ - int m = (int)(((y1 + y3 - (y0 + y2)) * morph * morph * morph) + - ((2 * (y0 - y1) + y2 - y3) * morph * morph) + - ((y2 - y0) * morph) + - (y1)); - return (qbyte)bound(0, m, 255); -} - -static void R_BuildDistortTexture (void) -{ - int x, y, i, j; -#define DISTORTRESOLUTION 32 - qbyte data[5][DISTORTRESOLUTION][DISTORTRESOLUTION][2]; - - for (i=0; i<4; i++) - { - for (y=0; y