some updates
This commit is contained in:
@@ -29,6 +29,8 @@ public sealed class CameraResolutionTuner : MonoBehaviour
|
||||
|
||||
[Header("21:9 时相机本体(Main Camera)的目标 local 位姿(最大偏移)")]
|
||||
[Tooltip("21:9 时相机本体的目标 local Z 高度。用户指定 2.5(相机自身 z=2.5)。")]
|
||||
public float targetCameraY = 0f;
|
||||
|
||||
public float targetCameraZ = 2.5f;
|
||||
|
||||
[Tooltip("21:9 时相机本体的目标 local X 旋转角度。用户指定 5(相机自身 X=5°)。")]
|
||||
@@ -67,7 +69,7 @@ public sealed class CameraResolutionTuner : MonoBehaviour
|
||||
if (!enableTuning)
|
||||
{
|
||||
// 关闭:t=0 → 相机本体回到 local 设计基准(运行时为 0/identity)。
|
||||
_applied = eff.SetResolutionCameraSelf(0f, targetCameraRotX, targetCameraZ);
|
||||
_applied = eff.SetResolutionCameraSelf(0f, targetCameraRotX, targetCameraZ, targetCameraY);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -90,6 +92,6 @@ public sealed class CameraResolutionTuner : MonoBehaviour
|
||||
}
|
||||
// aspect <= designAspect:t=0(无微调)。
|
||||
|
||||
_applied = eff.SetResolutionCameraSelf(t, targetCameraRotX, targetCameraZ);
|
||||
_applied = eff.SetResolutionCameraSelf(t, targetCameraRotX, targetCameraZ, targetCameraY);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user