Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Shadow artifact on Grass with URP [Fix included]

Discussion in 'Universal Render Pipeline' started by sebsmax, Mar 11, 2020.

  1. sebsmax

    sebsmax

    Joined:
    Sep 8, 2015
    Posts:
    118
    While the terrain got a proper update for the shadows and the shadow cascading.
    The grass wasn't that lucky and remain with shadow artifacts.

    See bellow (A circle appear around the limit of the cascading)


    I did fix it myself (see bellow)


    Here is what needs to be modified to be fixed:
    upload_2020-3-11_20-8-32.png

    Atm the git still don't have a fix for it:
    https://github.com/Unity-Technologi...versal/Shaders/Terrain/WavingGrassPasses.hlsl
     
    Last edited: Mar 11, 2020
  2. chalogr

    chalogr

    Joined:
    Aug 24, 2016
    Posts:
    5
    Hello, could you please specify where you modified this? The name of the shader or script? My shadows broke and I have no idea where to change this.
     
  3. sebsmax

    sebsmax

    Joined:
    Sep 8, 2015
    Posts:
    118
    its mentioned just above: WavingGrasspasses.hlsl
     
  4. chalogr

    chalogr

    Joined:
    Aug 24, 2016
    Posts:
    5
    Thank you.
     
  5. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    584
  6. sebsmax

    sebsmax

    Joined:
    Sep 8, 2015
    Posts:
    118
  7. hertz-rat

    hertz-rat

    Joined:
    Nov 3, 2019
    Posts:
    71
    I decided against using URP for a small project recently because of this bug. When would you suspect the fix will be released?
     
  8. Elvar_Orn

    Elvar_Orn

    Unity Technologies

    Joined:
    Dec 9, 2019
    Posts:
    160
    Just made a backport PR for it to be in 7.4.
    https://github.com/Unity-Technologies/Graphics/pull/112

    The plan is to release 7.4 next month.
     
    hertz-rat likes this.
  9. Sasasoft

    Sasasoft

    Joined:
    Nov 6, 2016
    Posts:
    7
    I've updated my project to URP 7.4.1 from 7.3.1. This bug seems to be fixed now!
     
  10. TreyH

    TreyH

    Joined:
    Feb 6, 2014
    Posts:
    15
    @phil_lira

    This was fixed for grass, but detail meshes on terrain still have this artifact.
     
    oleg_v likes this.
  11. oleg_v

    oleg_v

    Joined:
    Nov 10, 2017
    Posts:
    68
    Unity 2021.3.11f1, URP 10.5.0. Artifacts are exists on detail meshes.
     
  12. PutridEx

    PutridEx

    Joined:
    Feb 3, 2021
    Posts:
    1,136
    2020* just in case someone comes back months after and thinks it's about 2021 LTS lol.
     
    oleg_v likes this.