mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-05 03:24:39 +00:00
Merge pull request #63 from FreeSlave/fixlight
Fix #62 ligthting issue.
This commit is contained in:
commit
4c55114a3e
@ -155,10 +155,10 @@ void CEnvLight::KeyValue( KeyValueData* pkvd )
|
|||||||
}
|
}
|
||||||
else if( j == 4 )
|
else if( j == 4 )
|
||||||
{
|
{
|
||||||
v /= 255;
|
float vf = v / 255.0f;
|
||||||
r *= v;
|
r *= vf;
|
||||||
g *= v;
|
g *= vf;
|
||||||
b *= v;
|
b *= vf;
|
||||||
}
|
}
|
||||||
|
|
||||||
// simulate qrad direct, ambient,and gamma adjustments, as well as engine scaling
|
// simulate qrad direct, ambient,and gamma adjustments, as well as engine scaling
|
||||||
|
Loading…
x
Reference in New Issue
Block a user