Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Disable Fog Per Camera

Discussion in 'High Definition Render Pipeline' started by vvelasco, Oct 22, 2020.

  1. vvelasco

    vvelasco

    Joined:
    Sep 21, 2015
    Posts:
    25
    Hi I'm Using HDRP for a first-person game
    I have 2 cameras, one for the body and the other for the environment.
    When I add fog, the camera I use for the body gets completely covered by fog. Is there anyway to disable the fog per camera? Any script that can help?
    Thanks
     
  2. vvelasco

    vvelasco

    Joined:
    Sep 21, 2015
    Posts:
    25
    I found out how to do it with layers.
     
  3. pierred_unity

    pierred_unity

    Unity Technologies

    Joined:
    May 25, 2018
    Posts:
    433
    Hey, normally you would use the custom frame setting in the camera's inspector you want to disable the fog for.

    I'm not sure what you meant by "layers", but if it gets the job done... ;)
     
    Last edited: Oct 24, 2020