「Unity/PostProcessing/MotionBlur」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→MotionBlur作り方) |
|||
| 行13: | 行13: | ||
参考:https://elekibear.com/20210428_01 | 参考:https://elekibear.com/20210428_01 | ||
| + | |||
| + | ==PackageManagerからPostProcessingのインストール確認== | ||
| + | Packages/manifest.json | ||
| + | <pre> | ||
| + | { | ||
| + | "dependencies": { | ||
| + | "com.unity.postprocessing": "3.4.0" | ||
| + | } | ||
| + | } | ||
| + | </pre> | ||
==カメラ固定の場合にブレさせる== | ==カメラ固定の場合にブレさせる== | ||
2025年4月13日 (日) 02:08時点における版
MotionBlurとは
モーションブラーと読み、動く物体をぼかす。
MotionBlur作り方
- PackageManagerからPostProcessingをインストール
- 右上LayersからEditLayersを選択して"PostProcess"という名前を、追加する
- MainCameraにPost-processLayerをAddComponent
- Post-processLayerのInspectorのLayerに"PostProcess"を追加
- 新規GameObjectを作成し、Post-processVolumeをAddComponentする
- PostProcessVolumeのLayerを"PostProcess"に変更する
- Post-processVolumeのInspectorを開きIsGlobalにチェック、ProfileからNewボタンを押す。
- Post-processVolumeのInspectorのAddEffectボタンを押し、Unity/MotionBlurを追加。その後MotionBlurのNoneをOnにしてShutterAngleとSampleCountにチェックする
参考:https://elekibear.com/20210428_01
PackageManagerからPostProcessingのインストール確認
Packages/manifest.json
{
"dependencies": {
"com.unity.postprocessing": "3.4.0"
}
}
カメラ固定の場合にブレさせる
- 動くオブジェクトのMeshRendererのAddtionalSettingsのMotionVectorsをPerObjectMotionにする
