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

Broken shadows using vertex offset shader

Discussion in 'General Graphics' started by misterlee, Oct 20, 2016.

  1. misterlee

    misterlee

    Joined:
    Sep 19, 2014
    Posts:
    54
    I'm trying to make some waving flags/fabric using vertex offset (I'm making the shader in Shader Forge).

    Everything was going fine... until I put two instances of the flag into a scene with the same material on. Then the shadows get broken around the edge of both objects. If I have only one instance of the object in the scene it's fine, but if there are two then the shadows get all broken.




    I've used the exact same node set up as the vegetation shader in the SF examples and I even copy and pasted the SF example one into my project and used that as-is and the weird thing is that is causes this broken edge in my project but it's fine in the shader forge example project. I've checked settings everywhere I can think of and made sure they are the same and I still can't figure out what the problem is.

    Any ideas anyone?
     
  2. Deleted User

    Deleted User

    Guest

    Is there a sample Project?