This commit is contained in:
SoulliesOfficial
2026-06-05 04:45:57 -04:00
parent 3a63641a2c
commit 7c60c40d6b
377 changed files with 10970 additions and 843 deletions

View File

@@ -25,6 +25,12 @@ namespace Ichni.RhythmGame
public float orthographicSize;
public float perspectiveOffset;
public float zoomOffset; // 用于效果如CameraZoomEffect的临时视野偏移
public void RefreshFOV()
{
cam.fieldOfView = perspectiveAngle + perspectiveOffset + zoomOffset;
}
#endregion
#region [] Submodules & References
@@ -54,14 +60,14 @@ namespace Ichni.RhythmGame
float ratioDifference = UIManager.GetScreenRatio() - UIManager.StandardRatio;
if (ratioDifference > 0)
{
gameCamera.perspectiveOffset = -22f * ratioDifference;
//gameCamera.perspectiveOffset = 12.5f * ratioDifference;
}
else
{
//gameCamera.perspectiveOffset = 11f * ratioDifference;
gameCamera.perspectiveOffset = -25f * ratioDifference;
}
gameCamera.cam.fieldOfView = perspectiveAngle + gameCamera.perspectiveOffset;
gameCamera.RefreshFOV();
return gameCamera;
}