mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-05-31 08:50:54 +00:00
Replaced r_multiSamples with r_antiAliasing to switch between SMAA, MSAA ( and TXAA future)
This commit is contained in:
parent
08f28edfb0
commit
e2e4295556
7 changed files with 124 additions and 59 deletions
|
@ -295,15 +295,22 @@ static void R_CheckCvars()
|
|||
}
|
||||
}
|
||||
|
||||
if( r_multiSamples.IsModified() )
|
||||
if( r_antiAliasing.IsModified() )
|
||||
{
|
||||
if( r_multiSamples.GetInteger() > 0 )
|
||||
switch( r_antiAliasing.GetInteger() )
|
||||
{
|
||||
glEnable( GL_MULTISAMPLE );
|
||||
}
|
||||
else
|
||||
{
|
||||
glDisable( GL_MULTISAMPLE );
|
||||
case ANTI_ALIASING_MSAA_2X:
|
||||
case ANTI_ALIASING_MSAA_4X:
|
||||
case ANTI_ALIASING_MSAA_8X:
|
||||
if( r_antiAliasing.GetInteger() > 0 )
|
||||
{
|
||||
glEnable( GL_MULTISAMPLE );
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
glDisable( GL_MULTISAMPLE );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue