Search Unity

Question Any solution for linear fog in HDRP?

Discussion in 'High Definition Render Pipeline' started by koolbro569, Dec 28, 2023.

  1. koolbro569

    koolbro569

    Joined:
    May 25, 2021
    Posts:
    4
    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?
     
  2. OlavAketun

    OlavAketun

    Joined:
    Aug 4, 2021
    Posts:
    44
    None built into hdrp, so you'd have to make it yourself I'm afraid.
     
  3. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    703
    You could implement it (or at least for the culling part) as a custom post process based on depth.
     
  4. koolbro569

    koolbro569

    Joined:
    May 25, 2021
    Posts:
    4
    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.
     
  5. mgeorgedeveloper

    mgeorgedeveloper

    Joined:
    Jul 10, 2012
    Posts:
    324
    Well there is a saying... "If it's stupid, but it works, it's not stupid". :)
     
    koolbro569 likes this.