Search Unity

Question Intersection coast shader appears on non-intersecting objects

Discussion in 'Shader Graph' started by Badwolf2828, Jun 19, 2021.

  1. Badwolf2828

    Badwolf2828

    Joined:
    Feb 5, 2019
    Posts:
    5
    After watching some tutorials on creating a coast intersection shader and adjusting it so that it is just an outline rather than a fade effect, I've noticed that a marching-ant style outline can appear on the edges of objects which aren't directly intersecting but rather projected on one another. I've attached the shader graph and a picture of the issue, any help would be very much appreciated. I should also note that this is using LWRP. This issue doesn't happen in scene view however, and the weird outline goes when I turn the render scale up to 2; this doesn't seem like the most efficient way of fixing this so I'm going to leave the thread open.
    March.PNG Shader.PNG
     
    Last edited: Jun 19, 2021