Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Need Sun behind the Volumetric Clouds

Discussion in 'High Definition Render Pipeline' started by Kadae, Jul 14, 2022.

  1. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
    upload_2022-7-15_2-7-25.png

    I need Sun behind the Volumetric Clouds.
    Can't find how to enable this layer...
     
  2. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    This is lensflare occlusion, and I believe work is afoot to address this.
     
    Kadae likes this.
  3. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
    Hmm, thanks for the answer. So I'll try to live without the lensflare for now, but the sun is invisible without it... LOL o_O
    Lights works, but there is no sun anymore... Will look later to find a problem.

    I just want to make sun behind th eclouds and make sun visible on clear sky.
     

    Attached Files:

    Last edited: Jul 15, 2022
  4. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
  5. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
  6. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
    So I created new HDRP project and imported my old files. Everything works now, and I won't using lensflare anymore.

    upload_2022-7-15_17-3-33.png
     
  7. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Kadae likes this.
  8. pierred_unity

    pierred_unity

    Unity Technologies

    Joined:
    May 25, 2018
    Posts:
    433
    Hey, the most likely reason for not seeing the sun disk was that the type of sky in your Visual Environment (in your volume profile) was set to "HDRI" or "Gradient". These 2 types do not render the procedural sun disk.

    To get a procedural sun disk, you must use the Physically Based Sky type, in your Visual Environment.

    Flares are a post effect that render on top of any sky types.

    (BTW the hdrp template uses an HDRI sky, so it's normal you won't see the actual sun disk from the directional light. The template relies on a lens flare instead.)
     
    Last edited: Jul 22, 2022
    Kadae likes this.