2D aspect ratio fixed

This commit is contained in:
Lubos 2022-04-30 21:28:26 +02:00
parent 9d07c27604
commit 0eb1d43b4a

View file

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