Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Question Shader graph overlay on intersecting objects

Discussion in 'Shader Graph' started by LastVision, Feb 23, 2021.

  1. LastVision

    LastVision

    Joined:
    Mar 1, 2014
    Posts:
    1
    Hey I am a bit new to the shader graph and I am currently a bit stuck on a shader effect I want to add.
    The idea I have is that any objects that are inside the object with the material will be highlighted with a color similar to this post: https://forum.unity.com/threads/highlight-intersection-shader.731177/#post-5354847
    But I need the effect to work on more complex meshes and I haven't found any answers so far, so I was thinking of giving it a shot and ask here :)

    Current result looks like this: https://imgur.com/a/TNThl1V
    Also we are using shader graphs and URP