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. Dismiss Notice

Question Rendering objects behind the clouds

Discussion in 'High Definition Render Pipeline' started by Alejandro-Aguila, Dec 17, 2022.

  1. Alejandro-Aguila

    Alejandro-Aguila

    Joined:
    Aug 22, 2012
    Posts:
    3
    Hello! I have a question related to hdrp, clouds and rendering objects behind the clouds.

    I would like to render a 3d planet behind the volumetric cloud system (global, not local). I am using a physically based sky and changing to a skybox solution is not an option.

    I have a shader to blend the planet with the sky (the planet is set far far away). This works for the planet and the sky but not for the clouds (clouds should be rendered over the whole planet, not just the non visible part of the planet).

    This image illustrates the effect that I want to achieve (just the clouds over the planet, forget about the other clouds).

    IMG_20221218_081706.jpg

    Is this possible with the current cloud system? Can I access from the shader graph to any buffer with cloud data?

    Would I need a custom pass? (if needed, which injection point would be better for this?)

    Would be easier to achieve this effect using the cloud layer system instead of the volumetric clouds?

    Thank you for your time.
     
    Last edited: Dec 23, 2022
  2. jbergs

    jbergs

    Joined:
    Feb 13, 2014
    Posts:
    26
    Would also like to know this.... Did you find any solution?
     
  3. HIBIKI_entertainment

    HIBIKI_entertainment

    Joined:
    Dec 4, 2018
    Posts:
    546
    2023 has the ability to add celestials on with lighting phases, check out the directional lights there.