mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-25 05:21:03 +00:00
Hud model rendering fixed
This commit is contained in:
parent
30c9b4eaa0
commit
9d07c27604
1 changed files with 2 additions and 1 deletions
|
@ -394,8 +394,9 @@ void VR_DrawFrame( engine_t* engine ) {
|
||||||
vr.fov_y = (fabs(fov.angleUp) + fabs(fov.angleDown)) * 180.0f / M_PI;
|
vr.fov_y = (fabs(fov.angleUp) + fabs(fov.angleDown)) * 180.0f / M_PI;
|
||||||
|
|
||||||
//Projection used for drawing HUD models etc
|
//Projection used for drawing HUD models etc
|
||||||
|
float hudScale = M_PI * 15.0f / 180.0f;
|
||||||
const ovrMatrix4f monoVRMatrix = ovrMatrix4f_CreateProjectionFov(
|
const ovrMatrix4f monoVRMatrix = ovrMatrix4f_CreateProjectionFov(
|
||||||
30.0f, 30.0f, 0.0f, 0.0f, 1.0f, 0.0f );
|
-hudScale, hudScale, hudScale, -hudScale, 1.0f, 0.0f );
|
||||||
const ovrMatrix4f projectionMatrix = ovrMatrix4f_CreateProjectionFov(
|
const ovrMatrix4f projectionMatrix = ovrMatrix4f_CreateProjectionFov(
|
||||||
fov.angleLeft / vr.weapon_zoomLevel,
|
fov.angleLeft / vr.weapon_zoomLevel,
|
||||||
fov.angleRight / vr.weapon_zoomLevel,
|
fov.angleRight / vr.weapon_zoomLevel,
|
||||||
|
|
Loading…
Reference in a new issue