- Home /
Question by
inianbharathi · Mar 11, 2015 at 07:15 AM ·
unity 5shader programmingfogvertex shaderimage-effects
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
fog-issue.jpg
(116.9 kB)
Comment
Hi! I have the same issue. Did you find the solution? Thanks in advance.
Answer by bootman2005 · Mar 12, 2016 at 02:48 PM
You can use UNITY_FOG macros to achieve curved fog in your custom shader. See this answer for details.
Your answer
Follow this Question
Related Questions
How to get the camera effects? 0 Answers
Unity 5 Global fog with transparency issues 2 Answers
Adding fog to this shader in unity 5.6 0 Answers
Shader question: interaction with world objects? 1 Answer
How to make only part of my scene foggy 2 Answers