Static (not moving) fog

Hi,
I am trying to create a fog that would stay in a same place all the time unlike Unity’s built in fog which moves when the player moves.

I will use this for terrain border, so when the player comes near the terrain edge it becomes foggy… I’ve already tried all types of fog (Linear,…) but they all move with the player. I also tried particles but it slowed down the game so this isn’t the solution. I searched forums but i didn’t realy find any good solutions.

Any ideas ?

Thanks.

I know many game companies will use a simple black texture to paint the terrain edge and set the sky color to black rather than using fog. im not sure if thats helpful, but if there arent fading objects, it is a simple and non-cpu intensive method of getting what you want.

Hi, I’m not sure if you can make static fog the way you want it (someone correct me if I’m wrong). But what I would do is control the fog under render setting via script. Make it so when the player gets close/closer to the map boarder then the fogStartDistance would become smaller.

Also for more info on how to control render setting via script go here.