Question by
AlexTemina · Nov 11, 2015 at 03:18 PM ·
unity 52dshaderfogsidescroller
What is the best way to add Fog in a side scrolling game?
I have to add global fog with different colors to my game, which is a 2D game (Everything is sprites) but it has different layers (main terrain, trees, mountains in the background...) depending on how far is the object, more fog, of course.
What is the best way of doing this? Custom shaders? I guess it's as simple as lerping the color in a shader, depending on the distance, but I don't want to have to add a specific material to all my objects, it should be a global thing, don't know if maybe added to the camera...
Comment