- Fixed: COLORMAP tricks to produce bright lights do not work with the hardware renderer, so do
not hardware accelerate weapon sprites that use them. (see Harmony) SVN r3170 (trunk)
This commit is contained in:
parent
820554d636
commit
3344fa9f30
5 changed files with 62 additions and 6 deletions
|
|
@ -61,6 +61,7 @@
|
|||
extern "C" {
|
||||
FDynamicColormap NormalLight;
|
||||
}
|
||||
bool NormalLightHasFixedLights;
|
||||
FPalette GPalette;
|
||||
TArray<FSpecialColormap> SpecialColormaps;
|
||||
BYTE DesaturateColormap[31][256];
|
||||
|
|
@ -860,11 +861,7 @@ void FDynamicColormap::ChangeColor (PalEntry lightcolor, int desaturate)
|
|||
{
|
||||
Color = lightcolor;
|
||||
// [BB] desaturate must be in [0,255]
|
||||
if( desaturate > 255 )
|
||||
desaturate = 255;
|
||||
else if ( desaturate < 0 )
|
||||
desaturate = 0;
|
||||
Desaturate = desaturate;
|
||||
Desaturate = clamp(desaturate, 0, 255);
|
||||
if (Maps) BuildLights ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue