I am having a problem with rendering a fog effect for mobile.
I was trying to use a combination of *Absolute World Position *and Camera Position in a *Post Process Material *to render the distance and to tint the result based on that distance.
Below you see a test setting for this.
This works like a charm in Shader Model 5:
Unfortunately when rendered in Android GLES3.1 preview (my project shall run on Android devices), the geometry is showing no effect.
Right now I am using *Exponential Height Fog *to render the fog in my map, but I am afraid that it is too expensive for many devices.
So I would love to find a solution for this problem.
I have already played with a fog effect via the materials based on the distance. But with that, I have to change each material in a map, which is annoying.
Is anyone having an idea, how I could achieve a cheap fog effect in SM3?