Fog on Windows Phone / Windows 8

I remember reading a while ago that fog didn’t work in Windows 8 and Windows Phone platforms. Is that still the case with 4.5.2?

Yes, the workaround is to use fog shader directly.

Okay … can you explain in more detail. Is that a standard shader or an asset I would need to purchase? Where would I apply the shader?

You can find the link to shader here - http://docs.unity3d.com/Manual/windowsstore-gettingstarted.html. You would set the shader on material you want to have fog.

Btw, this is only needed for low end devices supporting only DX feature level 9.1 as far as I recall

Oh okay … so fog will work normally on newer Windows Phones? If I enable it and the game is deployed on an older Windows PHone that can’t support fog, will the fog just turn itself off? Does Unity fog have a heavy performance impact?

Actually, I think all Windows Phones support minimum feature level 9.3, so it should work everywhere, unless there’s some ultra crappy phone out there, but I haven’t seen it.

If feature level is below 9.3, then yes, the fog simply won’t be visible.

As for performance, depends on various stuff, but overall, I would say no, it should be quite quick operation.

The fog doesn’t seem to show up when I deploy on the Lumia 920. It’s okay … not really an important part of my game, anyway.

Bug has already been fixed for the moment. I used a custom software development services for my work and found the problem.