目次
はじめに
Universal Render Pipeline(URP)でUnity標準のポストエフェクトを導入する手順です。
![](https://kingmo.jp/kumonos/wp-content/uploads/2022/07/urpPPset8-912x1024.jpg)
- Unity 2021.3.4
- Universal RP 12.1.7
導入方法
Post Processingをインストールします
Window
>Package Manager
を開きます。- プルダウンから
Unity Registry
を選択します。 - 検索項目で「Post Processing」と入力します。
- パッケージが表示されるので
Install
を押します。
![](https://kingmo.jp/kumonos/wp-content/uploads/2022/07/urpPPset0-1024x473.jpg)
設定方法
Renderer Dataを設定します
Universal Render Pipeline Asset
のRenderer List
に設定されているScriptableObjectを編集します。
![](https://kingmo.jp/kumonos/wp-content/uploads/2022/07/urpPPset1-1024x337.jpg)
このScriptableObjectのPost-processing
>Enabled
にチェックを入れます。
![](https://kingmo.jp/kumonos/wp-content/uploads/2022/07/urpPPset2-1024x194.jpg)
カメラを設定します
Camera
>Rendering
>Post Processing
にチェックを入れます。
![](https://kingmo.jp/kumonos/wp-content/uploads/2022/07/urpPPset3-1024x258.jpg)
設定は以上です。
Volumeを作成してエフェクトを追加します
Game Object
>Volume
から「Global Volume」を作成します。Inspector
でNew
を押下して「Global Volume Profile」を作成します。Add Override
からエフェクトを選択して適用します。
![](https://kingmo.jp/kumonos/wp-content/uploads/2022/07/urpPPset7-1024x881.jpg)
試しに「Vignette」を適用した画像です。
![](https://kingmo.jp/kumonos/wp-content/uploads/2022/07/urpPPset8-912x1024.jpg)
モバイル端末への負荷
ポストエフェクト自体が負荷の大きい処理なので、やり過ぎには注意が必要です。
公式では、下記エフェクトはモバイルフレンドリーだとされています。
- Bloom (with High Quality Filtering disabled)
- Chromatic Aberration
- Color Grading
- Lens Distortion
- Vignette
あわせて読みたい
![](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
![](https://kingmo.jp/kumonos/wp-content/uploads/2022/07/2dLight4-300x284.jpg)
【Unity】URPで 2D Light を使う
【はじめに】 Universal Render Pipeline(URP)で2D Lightを使用する手順です。 Unity 2021.3.4Universal RP 12.1.7 【手順】 「2DのURP Asset」を作成します 任意のフォ...
参考
LIGHT11
![](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)
![](https://cdn-ak.f.st-hatena.com/images/fotolife/h/halya_11/20210712/20210712160920.png)
【Unity】Universal Render Pipelineでポストエフェクトを適用する - LIGHT11
Universal Render Pipelineでポストエフェクトを適用する方法についてまとめました。 はじめに URPでポストエフェクトを掛ける手順 Renderer Dataを設定 Cameraを設定 Volu...