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

Resolved Shadow artifacts appear when I displace vertices of grass

Discussion in 'Editor & General Support' started by Perkovic15, Dec 29, 2021.

  1. Perkovic15

    Perkovic15

    Joined:
    Jul 30, 2021
    Posts:
    9
    Hello,
    The island and grass from video were made in blender, I have put particles on my island(simple quads) and converted them to mesh. After that I changed mesh data so that vertex normals are pointing upwards. Then i imported it into unity. Here I made simple shader where I move those quads, and put some grass sprite so they get a nice shape. This problem appeared immediately after that.

    I would be happy if you could help me solve this problem.

    Youtube link:

    I have also put the compressed shadergraph file
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,969
    Is shadow required to be realtime on the grass?
    Maybe just bake/fake it or disable it altogether
     
    Perkovic15 likes this.
  3. Perkovic15

    Perkovic15

    Joined:
    Jul 30, 2021
    Posts:
    9
    I would like it to be enabled. I will try baking it and inform you if it worked
     
  4. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    If the artifact you're referring to is the shimmering, this is because your shadow resolution is too low. If it's the shadows sometimes showing up in front of the grass geometry, you need to increase the shadow bias.
     
    DevDunk and Perkovic15 like this.
  5. Perkovic15

    Perkovic15

    Joined:
    Jul 30, 2021
    Posts:
    9
    Yeah, it was shadow resolution, thanks for the help