mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
VideoConfig: Define a per-game minimum convergence value instead of a percentage boost.
This commit is contained in:
parent
ec4dfae333
commit
b816ee1f79
@ -368,3 +368,6 @@ EFBCopyEnable = True
|
|||||||
|
|
||||||
[Video_Settings]
|
[Video_Settings]
|
||||||
FastDepthCalc = False
|
FastDepthCalc = False
|
||||||
|
|
||||||
|
[Video_Stereoscopy]
|
||||||
|
StereoConvergenceMinimum = 115
|
||||||
|
@ -56,13 +56,14 @@ void GeometryShaderManager::SetConstants()
|
|||||||
float offset = (g_ActiveConfig.iStereoDepth / 1000.0f) * (g_ActiveConfig.iStereoDepthPercentage / 100.0f);
|
float offset = (g_ActiveConfig.iStereoDepth / 1000.0f) * (g_ActiveConfig.iStereoDepthPercentage / 100.0f);
|
||||||
constants.stereoparams[0] = g_ActiveConfig.bStereoSwapEyes ? offset : -offset;
|
constants.stereoparams[0] = g_ActiveConfig.bStereoSwapEyes ? offset : -offset;
|
||||||
constants.stereoparams[1] = g_ActiveConfig.bStereoSwapEyes ? -offset : offset;
|
constants.stereoparams[1] = g_ActiveConfig.bStereoSwapEyes ? -offset : offset;
|
||||||
constants.stereoparams[2] = g_ActiveConfig.iStereoConvergence * (g_ActiveConfig.iStereoConvergencePercentage / 100.0f);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
constants.stereoparams[0] = constants.stereoparams[1] = 0;
|
constants.stereoparams[0] = constants.stereoparams[1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constants.stereoparams[2] = (float)(g_ActiveConfig.iStereoConvergenceMinimum + g_ActiveConfig.iStereoConvergence);
|
||||||
|
|
||||||
dirty = true;
|
dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ VideoConfig::VideoConfig()
|
|||||||
// Game-specific stereoscopy settings
|
// Game-specific stereoscopy settings
|
||||||
bStereoEFBMonoDepth = false;
|
bStereoEFBMonoDepth = false;
|
||||||
iStereoDepthPercentage = 100;
|
iStereoDepthPercentage = 100;
|
||||||
iStereoConvergencePercentage = 100;
|
iStereoConvergenceMinimum = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoConfig::Load(const std::string& ini_file)
|
void VideoConfig::Load(const std::string& ini_file)
|
||||||
@ -191,7 +191,7 @@ void VideoConfig::GameIniLoad()
|
|||||||
|
|
||||||
CHECK_SETTING("Video_Stereoscopy", "StereoEFBMonoDepth", bStereoEFBMonoDepth);
|
CHECK_SETTING("Video_Stereoscopy", "StereoEFBMonoDepth", bStereoEFBMonoDepth);
|
||||||
CHECK_SETTING("Video_Stereoscopy", "StereoDepthPercentage", iStereoDepthPercentage);
|
CHECK_SETTING("Video_Stereoscopy", "StereoDepthPercentage", iStereoDepthPercentage);
|
||||||
CHECK_SETTING("Video_Stereoscopy", "StereoConvergencePercentage", iStereoConvergencePercentage);
|
CHECK_SETTING("Video_Stereoscopy", "StereoConvergenceMinimum", iStereoConvergenceMinimum);
|
||||||
|
|
||||||
CHECK_SETTING("Video_Hacks", "EFBAccessEnable", bEFBAccessEnable);
|
CHECK_SETTING("Video_Hacks", "EFBAccessEnable", bEFBAccessEnable);
|
||||||
CHECK_SETTING("Video_Hacks", "EFBCopyEnable", bEFBCopyEnable);
|
CHECK_SETTING("Video_Hacks", "EFBCopyEnable", bEFBCopyEnable);
|
||||||
|
@ -128,7 +128,7 @@ struct VideoConfig final
|
|||||||
// Stereoscopy
|
// Stereoscopy
|
||||||
bool bStereoEFBMonoDepth;
|
bool bStereoEFBMonoDepth;
|
||||||
int iStereoDepthPercentage;
|
int iStereoDepthPercentage;
|
||||||
int iStereoConvergencePercentage;
|
int iStereoConvergenceMinimum;
|
||||||
|
|
||||||
// D3D only config, mostly to be merged into the above
|
// D3D only config, mostly to be merged into the above
|
||||||
int iAdapter;
|
int iAdapter;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user