Real Weapon Sights Shaders - 実銃サイト用シェーダーセット
- Digital500 JPY

Real Weapon Sights Shaders - 実銃サイト用シェーダーセット(コリメータ / スコープ) 武器モデルにリアルな光学効果を追加する 2 種類のシェーダーを収録。PC・Quest・VRChat 対応、デスクトップでも VR でも動作します。 VIDEO: https://www.youtube.com/watch?v=PgFpqejJ4cQ ──────────────────────── 【収録シェーダー】 ・コリメータ/ホロサイト用シェーダー ・スコープ(倍率サイト)用シェーダー ──────────────────────── 【機能ハイライト】 ・光学パララックス・レンズ湾曲・ビネット再現 ・エミッシブ対応レティクル - 色・輝度調整可 ・コリメータはスプライトシートで複数レティクルを瞬時切替 ・レティクルのゼロイン(上下オフセット)対応 ・スコープ版は専用カメラ+レンダーテクスチャで実像を描画 ・PC / Quest / VRChat (アバター・ワールド) で動作確認済み ・軽量設計 - シェーダー自体は高パフォーマンス ──────────────────────── 【コリメータ使用方法】 1. サイトモデル内に Unity 標準 Quad を配置し、マテリアルを適用 2. 独自メッシュを使う場合は平面かつ正しい UV が必要 3. シェーダー種類 - Collimator(透過) - Collimator Additive(加算合成・高速。明るい背景で残像注意) 4. スプライトシート行列を指定してレティクル切替 5. Additive 版のみ Blackout で視界暗転を調整可能 ──────────────────────── 【スコープ使用方法】 1. Unity Quad または独自の平面メッシュにマテリアルを適用 2. Scope Sight Masked 版は四隅を自動マスクして丸レンズを再現 3. 各スコープは「専用マテリアル・専用カメラ・専用 RT」が必須 4. 複数スコープを同時使用するとパフォーマンス低下に注意 5. カメラは 1 本にしてプレイヤー付近へテレポートさせる設計推奨 ──────────────────────── 【レンズ / レティクル設定例】 ・Lens Color / Normal Scale / Smoothness / Metallic ・Reticle Texture / Emissive Texture / Color / Emissive Power ・Mask Depth / Scale / Gradient・ビネット強度など ──────────────────────── 【インストール】 1. .unitypackage をインポート 2. 必要なマテリアルをメッシュに割り当て 3. サンプルシーンを参考にカメラと RT を設定 ──────────────────────── 【同梱物】 ・Collimator / Collimator Additive シェーダー ・Scope / Scope Masked シェーダー ・サンプルマテリアル・テクスチャ・デモシーン ──────────────────────── 【クレジット】 デモモデル: 3DGunsmith / Pokudinev EOTech: https://sketchfab.com/3d-models/eotech-xps2-1-holographic-scope-85bafd78f4ca4b8c85d8cc63637cd37d PSO-1: https://sketchfab.com/3d-models/pso-1-6826bb7852934647a4ab9e3e9706854b --------------------------------------------------------------------- Real Weapon Sights Shaders - Collimator & Scope optics for Unity / VRChat (PC & Quest) Two lightweight shaders that replicate real weapon optics with true parallax, lens effects and emissive reticles. Works in desktop and VR. VIDEO: https://www.youtube.com/watch?v=PgFpqejJ4cQ ──────────────────────── [Included Shaders] • Collimator / Holographic sight shader • Scope (magnified optic) shader ──────────────────────── [Feature Highlights] • Optical parallax, vignetting and lens curvature on a flat mesh • Emissive reticles with colour, brightness and zeroing control • Collimator shader supports sprite-sheet reticles and live switching • Scope shader uses a dedicated camera + render texture for realism • Full desktop and VR support, tested in VRChat (avatars & worlds) • Low GPU cost – keep active cameras to a minimum for best performance ──────────────────────── [Using the Collimator Shader] 1. Place a Unity Quad inside the sight model and assign the material 2. Custom meshes must be flat and UV-mapped like a Quad 3. Shader variants: - Collimator (transparent) - Collimator Additive (faster, but may glow on bright backgrounds) 4. Set sprite-sheet columns / rows to switch reticles via the Type property 5. Additive version offers Blackout to darken the view ──────────────────────── [Using the Scope Shader] 1. Apply the material to a Quad or flat custom mesh 2. Scope Sight Masked version auto-masks corners for a circular lens 3. Each scope needs its own material, camera and render texture 4. Multiple active cameras will lower FPS – keep one active or relocate a shared camera to the nearest scope ──────────────────────── [Lens & Reticle Settings] • Lens colour, normal scale, smoothness, metallic • Reticle texture, emissive texture, colour, emissive power • Reticle depth, scale, gradient, zeroing • Mask depth, scale, gradient, vignette, etc. ──────────────────────── [Installation] 1. Import the .unitypackage 2. Assign the materials to your sight meshes 3. Use the sample scene as a guide for camera and RT setup ──────────────────────── [Package Contents] • Collimator & Collimator Additive shaders • Scope & Scope Masked shaders • Sample materials, textures and demo scene ──────────────────────── [Credits] Demo models by 3DGunsmith & Pokudinev EOTech: https://sketchfab.com/3d-models/eotech-xps2-1-holographic-scope-85bafd78f4ca4b8c85d8cc63637cd37d PSO-1: https://sketchfab.com/3d-models/pso-1-6826bb7852934647a4ab9e3e9706854b