Pickles Height Fog Shader
- ダウンロード商品¥ 1,500
Unity向けの指数関数高さフォグのシェーダーです。 シーンを覆う大きなCubeにシェーダーを使用したマテリアルをあてるだけで動きます。 サンプルワールド * https://vrchat.com/home/launch?worldId=wrld_508926a7-9464-49ff-b806-f463d09b5006 * https://vrchat.com/home/launch?worldId=wrld_e440901c-e545-499a-bd39-9cf68c842b99 --- An exponential height fog shader for Unity. It works by putting a large Cube covering your Scene with a material using the shader. Sample world * https://vrchat.com/home/launch?worldId=wrld_508926a7-9464-49ff-b806-f463d09b5006 * https://vrchat.com/home/launch?worldId=wrld_e440901c-e545-499a-bd39-9cf68c842b99
注意点
- `_CameraDepthTexture`を使用しています。VRChatで使用する場合はリアルタイムシャドウが有効なディレクショナルライトを置けば動きます。clusterで使用する場合はPriorityが1以上のPostProcessingVolumeを作成して、DoFを有効にすれば動きます。 - 散乱はディレクショナルライト、ポイントライト、環境光をサポートしています。 - 遮蔽の計算(シャドウイング、ゴッドレイ)は実装されていません。 - GrabPassを使用しています。 - Depthテクスチャを使用しています。 - ノイズ機能は特にGPU負荷が高いです。 - パラメータが多く扱いが大変難しいです。 - 線光源を使用するにはC#またはU#などのスクリプトが必要です --- - Uses _CameraDepthTexture. Works in VRChat by putting Directional Light with realtime shadow mode. Also works in cluster by putting PostProcessingVolume with DoF and priority greater than 0. - Supports scattering by directional lights and ambient lights. - NOT support occlusions (shadowing, god ray). - Uses GrabPass and depth texture. - The noise feature is expensive for GPU. - So many parameters and difficult to handle (even for the author). - Requires C# or U# script to use line lights.
動作環境
- Unity2019以降のUnityで使用できます。 - Built-in Rendering Pipelineのみに対応しています。 - PCVRでのVRChatで動きます(2023/10/15現在)。 --- - works with Unity2019 or later. - works with ONLY Built-in Rendering Pipeline. - works with VRChat with PCVR (2023/10/15).
その他
- 再配布を禁止します。 - VRChatで利用することは可能です。 - 商用利用可能です。 使用時にアセット名や著作権などを明記しなくても大丈夫です。 質問があればDMをください。 --- - Redistribution is prohibited. - May be used on VRChat. - Commercial use is allowed. You do not need to specify the name of the asset or copyright when you use it. Please DM me if you have any questions.
リリース
v1.5.0 * Uniform densityのパラメータを追加しました * ノイズのスケール、最小最大値のパラメータを追加しました --- * Add uniform density parameters * Add noise scale and min/max parameters ------------------ v1.4.0 * 線光源に対応しました * 点光源をForwardBaseパスで処理するようにしてForwardAddパスを削除しました * 点光源と線光源を使用するにはC#/U#などのスクリプトが必要になりました(U#スクリプトを追加しました) * 従来のスクリプト無しで点光源が使えるシェーダーはHeightFogVolumeSimpleにリネームされました * NOTE.pdfを追加しました --- * support line lights * handle point lights in ForwardBase pass and remove ForwardAdd pass * require C#/U# scripts to use point lights and line lights (U# script included) * old shader is renamed to HeightFogVolumeSimple * NOTE.pdf added ------------------ v1.3.2 * 高さの方向をRendererのTransformを回転することで高さの方向を変えられるようにしました * 細かいバグを修正しました --- * support to change "height direction" by rotating Renderer's Transform * some small bugs are fixed ------------------ v1.3.1 * densityとfalloffの最大値を大きくしました * 狭いワールドのサンプルを追加しました --- * the maximum values for density and falloff are increased * new sample for indoor world ------------------ v1.3.0 * ノイズ機能を少しだけ軽量化しました。 * ノイズ機能のアーティファクトを修正しました。 * カリング・ステンシル機能を追加しました。 * README-jaを追加しました --- * small performance improvement for noise feature * fix artifacts when noise enable * culling and stencil feature ------------------ v1.2.1 * ノイズにアーティファクトが発生していたのを修正しました。 --- * Fix artifacts by noise shader. ------------------ v1.2.0 * ノイズ機能を追加しました。 --- * Add noise feature. ------------------ v1.1.0 * README.mdを追加しました。 * Point Lightに対応しました。 --- * Add README.md * Support Point Light