Global fog with curve shader

Hi,
Initially we used fog effects found in render setting .But in latest unity 5 we get fog effect as script attached to camera as global fog.We use curve shader that does vertex transformation like subway surfers.But latest fog does not support support such transformations.It appears as shown below.Can some of you guide me on this issue.Thanks in advance

You can use UNITY_FOG macros to achieve curved fog in your custom shader. See this answer for details.