- removed all code that mixes together the different lighting methods. Now everything goes through the 3 different light parameters in the render state.

- removed cm parameter from many functions.
This commit is contained in:
Christoph Oelckers 2014-05-11 21:47:54 +02:00
commit 978ace241c
31 changed files with 154 additions and 507 deletions

View file

@ -210,7 +210,7 @@ PalEntry averageColor(const DWORD *data, int size, fixed_t maxout_factor)
g = Scale(g, maxout_factor, maxv);
b = Scale(b, maxout_factor, maxv);
}
return PalEntry(r,g,b);
return PalEntry(255,r,g,b);
}