Fixed last commit ...

This commit is contained in:
Robert Beckebans 2020-04-26 10:41:09 +02:00
parent 605944924a
commit c5bfbf5457
2 changed files with 5 additions and 5 deletions

View file

@ -1491,14 +1491,14 @@ void idRenderBackend::CheckCVars()
}
}
if( r_useIBL.IsModified() ||
if( r_usePBR.IsModified() ||
r_useHDR.IsModified() ||
r_useHalfLambertLighting.IsModified() ||
r_pbrDebug.IsModified() )
{
bool needShaderReload = false;
if( r_useIBL.GetBool() && r_useHalfLambertLighting.GetBool() )
if( r_usePBR.GetBool() && r_useHalfLambertLighting.GetBool() )
{
r_useHalfLambertLighting.SetBool( false );
@ -1508,7 +1508,7 @@ void idRenderBackend::CheckCVars()
needShaderReload |= r_useHDR.IsModified();
needShaderReload |= r_pbrDebug.IsModified();
r_useIBL.ClearModified();
r_usePBR.ClearModified();
r_useHDR.ClearModified();
r_useHalfLambertLighting.ClearModified();
r_pbrDebug.ClearModified();

View file

@ -2140,13 +2140,13 @@ void idRenderBackend::AmbientPass( const drawSurf_t* const* drawSurfs, int numDr
idVec4 ambientColor;
float ambientBoost = 1.0f;
if( !r_useIBL.GetBool() )
if( !r_usePBR.GetBool() )
{
ambientBoost += r_useSSAO.GetBool() ? 0.2f : 0.0f;
ambientBoost *= r_useHDR.GetBool() ? 1.1f : 1.0f;
}
bool useIBL = r_useIBL.GetBool() && !fillGbuffer;
bool useIBL = r_usePBR.GetBool() && !fillGbuffer;
ambientColor.x = r_forceAmbient.GetFloat() * ambientBoost;
ambientColor.y = r_forceAmbient.GetFloat() * ambientBoost;