X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=gl_rmain.c;h=33f58d2626bd8fdefb2322c76a873538fe6c4e0c;hp=fb0821df1aafc0210ae01deba26731b0b4edd338;hb=30d0492aa1b4c2198e3d522dc0720a7eb7150176;hpb=e3b0cf4495e30fb814a65a370e9d36dbeb5c6a5e 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