- replaced finesine for texture warping with a smaller custom table, based on the old 2005 FP code, but fixes the generation of the sine table.

- removed all remnants of finesine and deleted tables.c and tables.h.
This commit is contained in:
Christoph Oelckers 2016-04-28 15:59:37 +02:00
commit ef98757c7c
21 changed files with 47 additions and 158 deletions

View file

@ -72,6 +72,10 @@ FTextureManager::FTextureManager ()
{
memset (HashFirst, -1, sizeof(HashFirst));
for (int i = 0; i < 2048; ++i)
{
sintable[i] = short(sin(i*(M_PI / 1024)) * 16384);
}
}
//==========================================================================