1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Unity ShaderGraphでY軸固定のビルボードを作る(簡易版)

Last updated at Posted at 2023-04-25

目的

UnityのShaderGraphでY軸固定のシェーダーを作ります
今回は簡易版で、ちゃんと計算するものは次回書きます

作り方

内容はビルボードの回転に使う行列の成分を一部消すだけです。
しっかりとした作りになってないので3Dモデル等で扱うと意図しない変形をすると思いますが、
2DSpriteをビルボード表示する程度であれば問題ないはずです。

中段から下段のノードについては参考にしたサイトを確認してください。

image.png
image.gif

参考

参考にさせていただきました。ありがとうございます。

もし何かもっといい方法があれば教えてください。

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?