mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
don't apply SMAA to small regions
This commit is contained in:
parent
83f8643cb3
commit
b918b24304
1 changed files with 7 additions and 0 deletions
|
@ -321,6 +321,13 @@ void SMAA::Draw(const viewParms_t& parms)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// a render pass for every little 3D head in the scoreboard? no thanks
|
||||||
|
const int sizeThreshold = (max(glConfig.vidWidth, glConfig.vidHeight) + 29) / 30;
|
||||||
|
if(parms.viewportWidth <= sizeThreshold && parms.viewportHeight <= sizeThreshold)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const char* const presetNames[] = { "", "Low", "Medium", "High", "Ultra" };
|
const char* const presetNames[] = { "", "Low", "Medium", "High", "Ultra" };
|
||||||
SCOPED_RENDER_PASS(va("SMAA %s", presetNames[r_smaa->integer]), 0.5f, 0.25f, 0.75f);
|
SCOPED_RENDER_PASS(va("SMAA %s", presetNames[r_smaa->integer]), 0.5f, 0.25f, 0.75f);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue