mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
OpenXR - HUD scale option added
This commit is contained in:
parent
5417e828de
commit
a58ea86318
@ -1214,6 +1214,7 @@ static ConfigSetting vrSettings[] = {
|
||||
ConfigSetting("VRCameraSide", &g_Config.fCameraSide, 0.0f),
|
||||
ConfigSetting("VRCanvasDistance", &g_Config.fCanvasDistance, 6.0f),
|
||||
ConfigSetting("VRFieldOfView", &g_Config.fFieldOfViewPercentage, 100.0f),
|
||||
ConfigSetting("VRHeadUpDidplayScale", &g_Config.fHeadUpDidplayScale, 0.5f),
|
||||
ConfigSetting("VRMotionLength", &g_Config.fMotionLength, 0.5f),
|
||||
|
||||
ConfigSetting(false),
|
||||
|
@ -471,6 +471,7 @@ public:
|
||||
float fCameraSide;
|
||||
float fCanvasDistance;
|
||||
float fFieldOfViewPercentage;
|
||||
float fHeadUpDidplayScale;
|
||||
float fMotionLength;
|
||||
|
||||
// Debugger
|
||||
|
@ -392,9 +392,8 @@ void LinkedShader::UpdateUniforms(u32 vertType, const ShaderID &vsid, bool useBu
|
||||
!gstate.isFogEnabled() && //2D content cannot be rendered with fog on
|
||||
!gstate.isDepthWriteEnabled(); //This breaks minimap in GTA but works elsewhere
|
||||
if (hud) {
|
||||
float scale = 0.5f;
|
||||
render_->SetUniformF1(&u_scaleX, scale);
|
||||
render_->SetUniformF1(&u_scaleY, scale / 480.0f * 272.0f);
|
||||
render_->SetUniformF1(&u_scaleX, g_Config.fHeadUpDidplayScale);
|
||||
render_->SetUniformF1(&u_scaleY, g_Config.fHeadUpDidplayScale / 480.0f * 272.0f);
|
||||
} else {
|
||||
render_->SetUniformF1(&u_scaleX, 1.0f);
|
||||
render_->SetUniformF1(&u_scaleY, 1.0f);
|
||||
|
@ -1103,6 +1103,7 @@ void GameSettingsScreen::CreateViews() {
|
||||
vrSettings->Add(new ItemHeader(vr->T("VR camera")));
|
||||
vrSettings->Add(new PopupSliderChoiceFloat(&g_Config.fCanvasDistance, 1.0f, 15.0f, vr->T("Distance to 2D menus and scenes"), 1.0f, screenManager(), ""));
|
||||
vrSettings->Add(new PopupSliderChoiceFloat(&g_Config.fFieldOfViewPercentage, 100.0f, 200.0f, vr->T("Field of view scale"), 10.0f, screenManager(), vr->T("% of native FoV")));
|
||||
vrSettings->Add(new PopupSliderChoiceFloat(&g_Config.fHeadUpDidplayScale, 0.2f, 1.0f, vr->T("Head up display scale"), 0.1f, screenManager(), ""));
|
||||
|
||||
vrSettings->Add(new ItemHeader(vr->T("VR controllers")));
|
||||
vrSettings->Add(new CheckBox(&g_Config.bEnableMotions, vr->T("Map controller movements to keys")));
|
||||
|
Loading…
Reference in New Issue
Block a user