mirror of
https://github.com/DrBeef/JKXR.git
synced 2025-05-31 09:00:49 +00:00
We have visuals!!
OpenXR is now at least rendering the menu screen!
This commit is contained in:
parent
6a61f24048
commit
2c00a2a40f
10 changed files with 1092 additions and 524 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue