【VRChat】前髪越しに目が見えるシェーダー「透髪」(アバター用・PC)
- Digital500 JPY













前髪で隠れていた目が、ちゃんと見える。 「透髪(スカシガミ)」は、アニメみたいに前髪の上へ目・まつ毛・眉をうっすら重ねるシェーダーです。 アバターを選んでボタンを押すだけ。まばたきや表情もそのままついてきて、見ている全員に同じように見えます。 長い前髪のままでも、目元の表情でちゃんと気持ちが伝わります。ミラーや VRChat のカメラにも映ります。 ■ ポイント ・前髪が長くても、目元の表情が伝わる ・まばたき・ウインク・笑顔にそのまま追従 ・手・ほかの人・頭の後ろからは透けない ・横や真上から見ると、自然に薄く消える ・元のメッシュやマテリアルは変えない。「外す」で元どおり ↓ 動きは2枚目の GIF、くわしくは下へ。 ■ くわしく ・前髪越しの目:目・まつ毛・眉を髪の上に半透明で重ねます。透ける濃さ・ふちのぼかし・髪の色の混ぜ具合を調整できます ・プリセット:ふんわり / はっきり / ほんのり ・まばたき・表情:顔のメッシュにマテリアル枠を足す方式なので、シェイプキーにそのままついていきます ・正しく隠れる:閉じたまぶた・鼻・ほおに隠れた目は、髪越しでも隠れたまま。頭の後ろからは見えません ・透けない所:手・ほかの人・その髪の向こうの顔は透けません(髪のすぐ奥の顔だけを描きます) ・半透明の髪・カットアウトの髪・ふつうの髪のどれでも使えます(lilToon で確認) ・自動:目のまわりの小さなパーツ(目・まつ毛・眉)と、目にかかる髪を自動で見つけます。チェックで直せます ・ミラー・VRChat のカメラでも見えます(それぞれオフにもできます) ・スクリプト(U#)は使いません。付けるのも Ctrl+Z 1回で取り消せます ・日本語 / English の専用ウィンドウ(右上で切り替え。Auto は PC の言語に合わせます) ■ 動作環境 ・Unity 2022.3(VRChat で使うバージョン)/ビルトイン レンダーパイプライン ・PC のアバター専用(VRChat の仕様で、Quest・スマホのアバターではカスタムシェーダーが使えません) ・VRChat SDK3 Avatars(なくてもコンパイルできます。Modular Avatar も不要) ・顔・髪のシェーダーは何でもかまいません(lilToon 2.3.4 で確認) ・深度テクスチャは使わないので、どのワールドでも同じように見えます ■ 導入 1. unitypackage を Unity にドラッグ&ドロップしてインポート 2. メニューの Tools > lv1101 > Sukashigami (See-through Bangs) でウィンドウを開く 3. Hierarchy でアバターを選び、「スカシガミを付ける」を押す(顔と髪には自動でチェックが付きます) 使い方は同梱の README_ja.txt と、商品画像の「設定画面ガイド」(日本語・英語)にあります。 ■ 重さの目安 Renderer は増えません。マテリアル枠が顔に1つ・チェックした髪1つにつき2つ増えます(パフォーマンスランクのマテリアル数に入ります)。 例:ゆめかでは マテリアル枠 +5、描画 +12。色を描くのは1回(髪の上の目だけ)で、ほかは画面に色を出さない軽い描画です。 マテリアルが複数ある髪は小さな複製を作って使います(ゆめかの前髪で約 0.7 MB)。 ■ 内容物 ・Sukashigami_1.0.0.unitypackage(README_ja.txt / README_en.txt 入り) ・利用規約.txt / TermsOfUse_en.txt ■ ご注意 ※画像は Unity 上(Linear)で撮影したものです。商品ページの画像に映っているアバター・衣装・背景は商品に含みません。 ※画像のアバター:ゆめか Yumeka(©Arka_X / https://booth.pm/ja/items/8672657 )。商品には含みません。画像では、ゆめかの前髪を長くするシェイプキーを使っています。 ※背景の素材:Poly Haven(CC0)。商品には含みません。 ※目のパーツは自動で見つけます。アバターによっては、目が透けない・肌が少し透けることがあります。チェックや「眉も透かす」を見直して付け直してください。 ※目のパーツが顔のメッシュの最後のマテリアルに無いアバターでは、顔のメッシュを複製します(シェイプキーも全部コピーするので、プロジェクトのファイルが大きくなります。アップロードの大きさは変わりません)。 ※自分の視点(一人称)では、VRChat が頭を縮めるので見えません(ミラー・カメラでは見えます)。 ※ステンシルの 64・128 を描く間だけ使って消します。ほかのステンシルを使うシェーダーと、ごくまれに重なることがあります。 ■ 利用規約(概要) ・VRChat のアバター(Public/商用・有料イベントでの使用を含む)で使えます ・改変できます ・シェーダー・スクリプトの再配布、転売はできません(改変したものも含む) ・クレジット表記は任意です(書いていただけると嬉しいです) くわしくは同梱の 利用規約.txt をご覧ください。 ―――――――――――――――― ■ English Sukashigami (See-through Bangs) lets the eyes and brows of a VRChat avatar show through the front hair, like in anime (PC only, Built-in RP, Unity 2022.3). The eyes, lashes and brows hidden by the bangs are laid faintly over the hair. Blinking and expression blend shapes are followed as they are, and closed eyes stay closed under the hair. Nothing shows through hands, other people, their hair or the back of the head, and it fades out when seen from the side or straight above. No Udon / U# needed: everyone sees the same. Select your avatar in the dedicated window and press one button: the eye parts (eyes, lashes, brows) and the hair over the eyes are found automatically. Works with opaque, cutout and see-through hair (checked with lilToon). It is non-destructive: material slots are added (hair with several materials uses a small copy); your meshes, materials and textures are not changed. "Remove" puts everything back. Adjust the strength, soft edges and hair colour mix. Presets: Soft / Clear / Faint. Also in mirrors and VRChat cameras (each can be switched off). PC avatars only: VRChat does not allow custom shaders on Quest / mobile avatars. No depth texture is used, so it looks the same in every world. Performance: no renderer is added; +1 material slot on the face and +2 per ticked hair mesh (Yumeka: +5 slots, +12 draws; only one of them draws colour, the others are light passes without colour). • Full English UI: switch Auto / 日本語 / English at the top right of the window • English README (README_en.txt) and Terms of Use (TermsOfUse_en.txt) included • English settings guide images are included in the product images • Avatar in the images: Yumeka (©Arka_X), not included. Backgrounds: Poly Haven (CC0), not included. Install: import the unitypackage, open Tools > lv1101 > Sukashigami (See-through Bangs), select your avatar and press "Add Sukashigami". Terms (summary): usable on VRChat avatars, including public use, commercial use and paid events; modification allowed; redistribution or resale of the shader / scripts (including modified versions) is not allowed; credit is optional. ■ 更新履歴 / Version history 1.0.0 最初の版 / First release













