以下の内容はhttps://baba-s.hatenablog.com/entry/2018/09/07/170000より取得しました。


【Unity】三角形をピラミッド状に変更するシェーダを導入する

はじめに

http://www.shaderslab.com/demo-80---triangles-to-pyramids.html

この記事では上記のサイト様が公開されている
三角形をピラミッド状に変更するシェーダを導入する方法を紹介していきます

使用例

適用前

f:id:baba_s:20180812130001p:plain

適用後

f:id:baba_s:20180812130010p:plain

使い方

上記のシェーダファイルを Unity プロジェクトに追加します

f:id:baba_s:20180812130112p:plain

シェーダを使用したいオブジェクトのマテリアルの Shader を
「Custom/Geometry/Pyramids」に変更します

f:id:baba_s:20180812130128p:plain

マテリアルのパラメータを自由に変更します

f:id:baba_s:20180812130010p:plain

これで、シェーダを使用できます

関連記事




以上の内容はhttps://baba-s.hatenablog.com/entry/2018/09/07/170000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14