Browse Source

Merge pull request #63 from FreeSlave/fixlight

Fix #62 ligthting issue.
caseclosed
Alibek Omarov 7 years ago committed by GitHub
parent
commit
4c55114a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dlls/lights.cpp

8
dlls/lights.cpp

@ -155,10 +155,10 @@ void CEnvLight::KeyValue( KeyValueData* pkvd ) @@ -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…
Cancel
Save