LoginSignup
3
1

More than 3 years have passed since last update.

UniversalRPでモデルからバンプマップ付きスプライトを作る

Last updated at Posted at 2020-06-12

gif_animation_004.gif

UniversalRPではエモい2Dライトが使えるのですが、3Dモデルとの共存に難があります

そこで、モデルから1枚絵+バンプマップを作り、2Dとして3Dっぽいものを出してみました。

追記: アセット販売中です
ModelToBump_Icon160x160.png

追記2: URPのLight2Dモードを使っていて表示がおかしい場合は一旦
PipelineSettings を元の
UniversalRenderPipelineAsset に戻してあげる必要があります

2020-06-29_224558.png
2020-06-29_223813.png
2020-06-29_224619.png

準備が整ったら、バンプマップを表示するShaderGraphを作成します。
2020-06-12_224906.png

AssetStoreからダウンロードして既存マテリアルを半自動で変換したモデルと、
outputURP_albedo.png

バンプシェーダーを使って表示したバンプモデル
outputURP_bump.png
をファイルに保存し、
UniversalRPのマテリアルにアタッチしました。
2020-06-13_000845.png

1枚絵ですがかなり立体感があります。
gif_animation_003.gif

Sprite & 2Dライトの環境でも
2020-06-13_002951.png

こんな感じで立体的に!
ezgif-3-b6a4f7e766c9.gif

結構使えそうです。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1