[Free] VRC Mirror Reflection Proxy Shader
- NormalDigital0 JPY
- Normal (Donation/寄付)Digital1,000 JPY
![[Free] VRC Mirror Reflection Proxy Shader](https://booth.pximg.net/da52898a-55fb-47ad-bd28-d1e52668811d/i/2552410/bf1051eb-1064-47fd-b7e2-0ef50b127452_base_resized.jpg)
エリア内の「リフレクションプローブ(Reflection Probe)」の内容を、オブジェクトの内側に描画するシェーダーです。 鏡越しに見た場合のみ表示されるように設定することで、鏡の反射用として「軽量な代替背景(Proxy Background)」を作成するのに役立ちます。 ✨ 主な用途 - 鏡の反射負荷を軽減するための擬似背景として。 - 鏡の中にだけ映る特別な空間演出として。
導入方法
シェーダーファイルをUnityプロジェクトの Assets/ フォルダ内に配置してください。
使い方
1. マテリアルの作成: 新しいマテリアルを作成し、本シェーダーを割り当てます。 2. Cubeの配置: シーンにCubeを作成し、Collider(当たり判定)を削除してください。 3. レイヤー設定: そのCubeを「鏡の反射にのみ映るレイヤー(Reflection only layer)」などに設定し、作成したマテリアルを適用します。 4. 確認: Cubeの内部に、その位置のリフレクションプローブ(Box Projectionを含む)の内容が表示されます。 💡 調整のヒント Cubeの形状やサイズによって背景の見え方が変化します。実際に鏡の中からどう見えるかを確認しながら調整してください。 Box Projection(ボックス投影) が有効になっているリフレクションプローブと組み合わせると、最も良い結果が得られます。
仕様上の注意
描画順(Render Queue): このシェーダーは、見た目上の奥行きや視差(Parallax)を持ちますが、他のオブジェクトと干渉(クリッピング)することはほとんどありません(対象が非常に巨大な場合を除く)。 基本的には、スカイボックスのほんの少し手前に描画される仕様となっています。
Description
A shader that renders the area's reflection probe on the inside, which is only visible through a mirror. This is useful for creating a low-quality proxy background of a space for the mirror reflection. To install, place the shader into your Assets folder.
Usage
Create a new material with the shader and a cube without a collider. Place the cube on a reflection only layer, and assign the material to it. The cube will display the local reflection probes inside it, including box projection. The shape and size of the cube affects how the background appears, so check out how it looks from within the mirror. Best used with box projected cubemaps. Note that while the box has visible depth and parallax, it won't clip into objects (unless they're very large) and essentially renders just slightly in front of the skybox.
Notes & Support
Licensed under the MIT license. https://gitlab.com/s-ilent/vrc-mirror-proxy-area For support or feedback, you can join the Discord. https://discord.gg/uHJx4g629K

