mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
OpenXR - Test mirroring over 30 various games
This commit is contained in:
parent
d32b6ceff0
commit
97d63a321c
1 changed files with 17 additions and 17 deletions
|
@ -661,7 +661,7 @@ void UpdateVRParams(float* projMatrix, float* viewMatrix) {
|
|||
vrMirroring[VR_MIRRORING_AXIS_Z] = projMatrix[10] > 0;
|
||||
|
||||
float up = 0;
|
||||
for (int i = 4; i < 8; i++) {
|
||||
for (int i = 4; i < 7; i++) {
|
||||
up += viewMatrix[i];
|
||||
}
|
||||
|
||||
|
@ -671,30 +671,30 @@ void UpdateVRParams(float* projMatrix, float* viewMatrix) {
|
|||
variant += (up < 0) << 3;
|
||||
|
||||
switch (variant) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 0: //e.g. ATV
|
||||
case 1: //untested
|
||||
vrMirroring[VR_MIRRORING_PITCH] = false;
|
||||
vrMirroring[VR_MIRRORING_YAW] = true;
|
||||
vrMirroring[VR_MIRRORING_ROLL] = true;
|
||||
break;
|
||||
case 2:
|
||||
case 3:
|
||||
case 5:
|
||||
case 7:
|
||||
case 8:
|
||||
case 9:
|
||||
case 10:
|
||||
case 11:
|
||||
case 13:
|
||||
case 15:
|
||||
case 2: //e.g.PES 2014
|
||||
case 3: //untested
|
||||
case 5: //e.g Dante's Inferno
|
||||
case 7: //untested
|
||||
case 8: //untested
|
||||
case 9: //untested
|
||||
case 10: //untested
|
||||
case 11: //untested
|
||||
case 13: //untested
|
||||
case 15: //untested
|
||||
vrMirroring[VR_MIRRORING_PITCH] = true;
|
||||
vrMirroring[VR_MIRRORING_YAW] = true;
|
||||
vrMirroring[VR_MIRRORING_ROLL] = false;
|
||||
break;
|
||||
case 4:
|
||||
case 6:
|
||||
case 12:
|
||||
case 14:
|
||||
case 4: //e.g. Assassins Creed
|
||||
case 6: //e.g. Ghost in the shell
|
||||
case 12: //e.g. GTA Vice City
|
||||
case 14: //untested
|
||||
vrMirroring[VR_MIRRORING_PITCH] = true;
|
||||
vrMirroring[VR_MIRRORING_YAW] = false;
|
||||
vrMirroring[VR_MIRRORING_ROLL] = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue