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?

More than 3 years have passed since last update.

Unity ShaderGraph レシピ #10 薄膜シェーダ(MembraneShader) Alpha値バージョン

Last updated at Posted at 2020-12-28

#MembraneShader(Alpha)
gif_animation_010.gif

輪郭部分から中心に向かうにしたがって透明度が上がっていく表現です。
「おばけ」とか「レントゲン」とかそういう雰囲気を簡単に出すことができます。
今回説明するのはとにかく簡単につくれるレベル1バージョンです。

#作り方

1.エッジを抽出してアルファ値とする

エッジの抽出方法はリムライトの回で説明した方式ままです。
視線ベクトルとメッシュの法線で内積を取って判定します。
その結果をアルファに入れるだけです。

スクリーンショット 2020-12-28 16.44.19.png

2.EdgePowerの中身

リムライトの記事と同じですが一応貼っておきます。
スクリーンショット 2020-12-28 16.33.14.png

###完成!
gif_animation_010.gif


その他のレシピはShaderGraphレシピ一覧にまとまっています

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?