[Unity][Shader] Stylized Fog
I wrote a simple shader for Unity to make a stylized fog like Fire Watch's fog. The idea is to get a pixel on the texture depending on the pixel depth, if the fog is near, a pixel on the left on the texture uv will be picked, if the fog is far, a pixel on the right on the texture uv will be picked. Features Choose between a linear fog and an exponential fog Choose between a simple color or a texture Screenshots Video Source Code Image Effect Version (Unity 2017 and older if not using Stack) [+] Shader Shader "Hidden/Shader_StylizedFog" { Properties { _MainTex("Texture", 2D) = "white" {} _FogColor("Fog Color", Color) = (1, 1, 1, 1) _UseStylizedFogTexture("Use Stylized Fog Texture", Int) = 0 _StylizedFogTexture("Stylized Fog Texture", 2D) = "white" {} _FogMinDistance("Fog Min Distance", Float) = 0 _FogMaxDistance("Fog Max Distance",...

Comments
Post a Comment