SkyProbe Fog
- RegularDigital0 JPY
- Regular (Donation/寄付)Digital1,000 JPY

リフレクションプローブ(Reflection Probe)の情報を使用して、擬似的な「大気散乱(Atmospheric Scattering)」を作り出すエリアフォグ・シェーダーです。 シーンの空気感を高め、リッチな環境表現を可能にします。 ✨ 主な特徴 Reflection Probe連動: 周囲の明るさや色味を反映した自然なフォグを生成します。 自然なフェード: 奥行き(Depth)とワールド空間(World Space)の両方において、地平線に向かって自然にフェードアウトします。
導入方法
Shader/ フォルダを、Unityプロジェクトの Assets/ ディレクトリ内にそのまま配置してください。
内容物
本パッケージには以下が含まれています。 Main SkyProbe shader: シェーダー本体。 Example material: サンプルマテリアル。 Example Prefab: 基本的な設定済みのプレハブ。
使い方
同梱のPrefabをシーンにドラッグ&ドロップし、エリアに合わせてサイズを調整してください。 ⚠️ 技術的な注意点 (Technical Notes) 1. 描画とクリッピングについて このシェーダーは、フォグ処理の一部として深度判定(クリッピング)をシェーダー内部で計算しています。 そのため、Unityの描画順としては常に他のオブジェクトの上(Over)に描画される仕様となっています。 2. デプスバッファ (Depth Buffer) について 本シェーダーはデプスバッファに依存しています。効果を正しく表示するためには、シーン内に Directional Light があるか、またはデプスバッファを有効にするその他の要素(例:Depth of Fieldなどのポストプロセス等)が必要です。
Description
Area fog for Unity that uses the reflection probe to create fake atmospheric scattering. To install, place the Shader/ folder with the shader into your Assets/ directory. Provided in this package are: - The main SkyProbe shader. - An example material. - An example Prefab with a generic set up. Drag the prefab to your scene and resize it to fit. This shader will always render over other objects, as it handles clipping as part of the fogging. It will fade the fog towards the horizon, both in depth and in world space. Note that, like other shaders which depend on the depth buffer, you'll need a directional light or other depth buffer activator (like disabled depth of field) to see the effect properly. This work is provided under the MIT license. https://gitlab.com/s-ilent/skyprobe-fog For support or feedback, you can join the Discord. https://discord.gg/uHJx4g629K

