Post Processing
Cinemachine Post Processing 拡張機能 を使用すると、バーチャルカメラに Postprocessing V2 プロファイルをアタッチすることができます。
ノート 1: Postprocessing V1 ではなく Postprocessing V2 の使用が推奨されます。
ノート 2: HDRP と URP 7 以降では、PostProcessing パッケージは非推奨となり、HDRP と URP でネイティブに実装されています。 その場合は、CinemachineVolumeSettings 拡張機能を参照してください。
拡張機能 Cinemachine Post Processing には、Virtual Camera がアクティベートされた時にそれに適用する Post Processing Profiles アセットが含まれています。カメラが別のバーチャルカメラとブレンドされている場合、ポストプロセスエフェクトにブレンドウェイトも適用されます。
ポストプロセスプロファイルをバーチャルカメラにアタッチする前に、プロジェクトがポストプロセスを使用できるように事前に設定する必要があります。
Cinemachine で Post Processing V2 を使用するようにプロジェクトを設定するには、以下の手順に従ってください。
Postprocessing V2 パッケージを インストール します。
シーンビューで、Cinemachine Brain を持つカメラを選択してください。
Post-Process Layer という名前のコンポーネントを追加してください。これにより、ポストプロセスプロファイルがカメラに影響を与えられるようになります。
ポストプロセスプロファイルは以下の手順でバーチャルカメラに追加できます。
Inspector ウィンドウで、メニューを Add Extension > CinemachinePostProcessing の順に選択し、このバーチャルカメラがライブになっている時に希望のエフェクトを利用できるように、プロファイルアセットを設定します。
プロパティー
Property: | Function: | |
---|---|---|
Profile | The Post-Processing profile to activate when this Virtual Camera is live. | |
Focus Tracks Target | This is obsolete, please use Focus Tracking. | |
Focus Tracking | If the profile has the appropriate overrides, will set the base focus distance to be the distance from the selected target to the camera. The Focus Offset field will then modify that distance. | |
None | No focus tracking | |
Look At Target | Focus offset is relative to the LookAt target | |
Follow Target | Focus offset is relative to the Follow target | |
Custom Target | Focus offset is relative to the Custom target | |
Camera | Focus offset is relative to the camera | |
Focus Target | The target to use if Focus Tracks Target is set to Custom Target | |
Focus Offset | Used when Focus Tracking is not None. Offsets the sharpest point away from the location of the focus target. |