Any solution for linear fog in HDRP?

Need a way to have linear fog that ends opaque as I’m trying to cull objects at a distance and the regular fog just isn’t working, any thoughts?

1 Like

None built into hdrp, so you’d have to make it yourself I’m afraid.

You could implement it (or at least for the culling part) as a custom post process based on depth.

1 Like

Thanks for the reply! Though I’ve never done shaders or custom post processing so I’m not sure what you’re talking about. But I’ve found a cheeky solution, all I did was make particle system with a donut shape, gave it a misty look, then I made it follow the player. Probably not the greatest solution but I’ll take for now I guess.

Well there is a saying… “If it’s stupid, but it works, it’s not stupid”. :slight_smile:

1 Like

I start make simple linear fog.
Please help to make visible sky.
I try blend “UV Position World” with Depth-fog, but result not what needed.
I tried a lot …

.
.
Update: DONE !

Limitations: color not affect by lighting (unlit), fog only gorizont bottom