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

Showcase [Open Source] Refraction for URP

Discussion in 'Universal Render Pipeline' started by wwWwwwW1, Nov 10, 2022.

  1. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    637
    Hey, I made a refraction shader graph for a URP project few weeks ago.

    I spent some time cleaning the graph up and published it on github.

    You can find more information here.

    Sample Scene (sphere & planar refraction):
    Sample.jpg

    RefractionInScene.gif
     
    tw00275, MP-ul and DevDunk like this.
  2. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    637
    Hi, I added Dithered Transparent Shadows to the graph.

    It is available in URP 14 (Unity 2022.2) and above. (need high PCF shadow sampling)
    DitheredTransparentShadow.jpg

    You can enable it in URP 12, but the result (shadow sampling) will be less than ideal.
     
    tw00275, MP-ul, lilacsky824 and 3 others like this.
  3. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    637
    The flickering on Forward+ path is fixed now.

    Refraction ray will be cast to the box volume of main probe in reflection probes atlas.