Merge branch 'feature_openxr_6dof' into feature_openxr_stereo

This commit is contained in:
Lubos 2022-08-15 17:41:27 +02:00
commit f8e68a45b6
2 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ void VR_EndFrame( engine_t* engine ) {
cylinder_layer.pose.position = pos;
cylinder_layer.radius = 12.0f;
cylinder_layer.centralAngle = M_PI * 0.5f;
cylinder_layer.aspectRatio = height / (float)width;
cylinder_layer.aspectRatio = 1;
engine->appState.Layers[engine->appState.LayerCount++].Cylinder = cylinder_layer;
} else {

View File

@ -396,7 +396,7 @@ void LinkedShader::UpdateUniforms(u32 vertType, const ShaderID &vsid, bool useBu
if (hud) {
float scale = 0.5f;
render_->SetUniformF1(&u_scaleX, scale);
render_->SetUniformF1(&u_scaleY, scale / 16.0f * 9.0f);
render_->SetUniformF1(&u_scaleY, scale / 480.0f * 272.0f);
} else {
render_->SetUniformF1(&u_scaleX, 1.0f);
render_->SetUniformF1(&u_scaleY, 1.0f);