Added AvP-Style attenuation code.

This commit is contained in:
Steven Fuller 2001-08-28 10:40:40 +00:00 committed by Patryk Obara
parent ab5897ec78
commit 35d91a5da3
5 changed files with 237 additions and 227 deletions

View file

@ -437,6 +437,15 @@ GLuint CreateOGLTexture(D3DTexture *tex, unsigned char *buf)
return h;
}
void ReleaseD3DTexture(void *tex)
{
D3DTexture *TextureHandle = (D3DTexture *)tex;
glDeleteTextures(1, &(TextureHandle->id));
free(TextureHandle);
}
/* ** */
void ThisFramesRenderingHasBegun()
@ -473,7 +482,7 @@ void D3D_DecalSystem_Setup()
/* this does stop zfighting with bulletmarks on walls... */
glEnable(GL_POLYGON_OFFSET_FILL);
glPolygonOffset(-10.0, -10.0);
glPolygonOffset(-8.0, -8.0);
}
void D3D_DecalSystem_End()