mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-25 19:29:13 +01:00
Fix #62 ligthting issue.
This commit is contained in:
parent
744732a381
commit
352e52eb0d
@ -155,10 +155,10 @@ void CEnvLight::KeyValue( KeyValueData* pkvd )
|
||||
}
|
||||
else if( j == 4 )
|
||||
{
|
||||
v /= 255;
|
||||
r *= v;
|
||||
g *= v;
|
||||
b *= v;
|
||||
float vf = v / 255.0f;
|
||||
r *= vf;
|
||||
g *= vf;
|
||||
b *= vf;
|
||||
}
|
||||
|
||||
// simulate qrad direct, ambient,and gamma adjustments, as well as engine scaling
|
||||
|
Loading…
Reference in New Issue
Block a user