前回は、Shader用のコードを書いて3色色替えしてみました。 今回は、Shader Graph を使ってコードを書かずに2Pカラーを作ってみます。 UnityにURPの設定 URPを確認 ShaderGraphを使うにはUnityにURPが必要なので、あるか確認します。 シェーダー名を replace1color に変更 ...
Projectウィンドウで右クリックからCreate >> Shader Graph >> URP >> Lit Shader Graph を選択してファイルを作成 Shader Graphファイルをダブルクリックするとウィンドウが開く ウィンドウ上で右クリックからCreate NodeでNode検索ウィンドウが出てノードを作成できる Texture 2D ...
The Texture Size node takes a Texture 2D input and returns the width and height texel resolution of the texture. It also returns the width and height size of each texel of the texture. The node uses ...