- cleanup.
(The Raven license got removed from sc_man after checking that no Raven code is still present here, this file got a nearly complete overhaul over all those years.)
This commit is contained in:
parent
9b9fd35107
commit
3530bc5945
4 changed files with 12 additions and 172 deletions
|
|
@ -700,7 +700,7 @@ void FTextureManager::ParseColorization(FScanner& sc)
|
|||
if (sc.Compare("desaturation"))
|
||||
{
|
||||
sc.MustGetFloat();
|
||||
tm.DesaturationFactor = sc.Float;
|
||||
tm.DesaturationFactor = (float)sc.Float;
|
||||
}
|
||||
else if (sc.Compare("AddColor"))
|
||||
{
|
||||
|
|
@ -728,7 +728,7 @@ void FTextureManager::ParseColorization(FScanner& sc)
|
|||
if (sc.CheckToken(','))
|
||||
{
|
||||
sc.MustGetFloat();
|
||||
tm.BlendColor.a = clamp(sc.Float, 0., 1.) * 255;
|
||||
tm.BlendColor.a = (uint8_t)clamp(sc.Float, 0., 1.) * 255;
|
||||
}
|
||||
}
|
||||
else if (sc.Compare("invert"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue