0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

2DスプライトのNormal texture を作る

Last updated at Posted at 2025-02-26

Unity URPの2Dパイプラインでは、法線付きスプライトを使用することができます。
image.png

スプライトのSecondary Texturesに_MaskTex と _NormalMapを用意することで、
同じマテリアルを複数のスプライトに適用することができます。
image.png

モデルのNormalMapはBlenderを使用することで作ることができるのですが、

ぶっちゃけ面倒ですよね。。

Unituのみで3DモデルからNormal画像を作成する場合、下記のようなShader Graphになります。
image.png
image.png

また、こちらのシェーダーを使用したNormal/Mask作成ツールをAssetStoreで販売しています。
NormalMapだけでなくMaskMapも簡単に作成することができます

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?