Search Unity

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:
    765
    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:
    765
    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:
    765
    The flickering on Forward+ path is fixed now.

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