We have visuals!!

OpenXR is now at least rendering the menu screen!
This commit is contained in:
Simon 2022-12-09 18:57:02 +00:00
parent 6a61f24048
commit 2c00a2a40f
10 changed files with 1092 additions and 524 deletions

View file

@ -1181,7 +1181,7 @@ void CGCam_Update( void )
}
else
{
float fov = vr && vr->immersive_cinematics ? vr->fov : client_camera.FOV;
float fov = vr && vr->immersive_cinematics ? vr->fov_x : client_camera.FOV;
CG_CalcFOVFromX( fov );
}

View file

@ -1368,7 +1368,7 @@ static qboolean CG_CalcFov( void ) {
g_entities[cg.snap->ps.viewEntity].NPC )
{//FIXME: looks bad when take over a jedi... but never really do that, do we?
//fov_x = g_entities[cg.snap->ps.viewEntity].NPC->stats.hfov;
fov_x = vr ? vr->fov : 90.0f;
fov_x = vr ? vr->fov_x : 90.0f;
//sanity-cap?
if ( fov_x > 120 )
{
@ -1388,7 +1388,7 @@ static qboolean CG_CalcFov( void ) {
else
{
//fov_x = 120;//FIXME: read from the NPC's fov stats?
fov_x = vr ? vr->fov : 90.0f;
fov_x = vr ? vr->fov_x : 90.0f;
}
}
}
@ -1413,7 +1413,7 @@ static qboolean CG_CalcFov( void ) {
fov_x = 160;
}*/
fov_x = vr ? vr->fov : 90.0f;
fov_x = vr ? vr->fov_x : 90.0f;
// Disable zooming when in third person
if ( cg.zoomMode && cg.zoomMode < 3 )//&& !cg.renderingThirdPerson ) // light amp goggles do none of the zoom silliness