Depth fog with gradient/ramp

Hi guys,
Anyone know how I would be able to recreate this attached image where 3d objects blend into a gradient fog?
I get perfect results with the standard fog IF I’m just using a plain background colour but I cant figure out the best way of approaching this with a gradient. ANY help / thoughts would be massively helpful.

Mega!

Arvid

1785856--113591--RampFog.jpg

I have a nice fog shadder that emulates ground fog.Is that what you want?

Would love to check it out if possible? It definitely is a ground fog I’m looking for. I just can’t figure out how to get a colour gradient in there. :slight_smile:

sure, I will see if I can dig it up, where to email?

pm’d you. thanks again

Manage to get it right.
Thanks for the help.
If anyone else need to do this, this is the codesnippet that does it. Actually should probably not be half4 but whatever. It’s the first time I ever write a shader.

half4 GradientScreenSpace = lerp (_Color,_Color2, (i.screenPos.x));
half4 BlendDepth = lerp (GradientScreenSpace,_MainTex, (i.wpos.y/range));

1789009--113820--1.PNG

No fog in scene. All the shader is doing is making a gradient and then blending upwards to the “normal” texture including light and shadow.

Mega!

I need a gradient ground fog. Please! Email : ajrss09@gmail.com.

@frankrs Please, i need ground fog, Email : buyaza@gmail.com