Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Intersection Highlight Shader for Particles

Discussion in 'Shader Graph' started by rmufrancisco, Oct 26, 2022.

  1. rmufrancisco

    rmufrancisco

    Joined:
    Jul 5, 2019
    Posts:
    2
    Hello all!

    So I was trying out the shader LandonTownsend posted in https://forum.unity.com/threads/highlight-intersection-shader.731177/ and I managed to get it working and tweaked to my needs. Unfortunately, it seems that it doesn't work when applied to a particle mesh.

    Object mesh:
    upload_2022-10-26_14-34-25.png

    Particle mesh:
    upload_2022-10-26_14-35-0.png

    Shader Graph:
    upload_2022-10-26_14-38-56.png

    My only changes to the graph is adding in Vertex Colors and so that it can be changed through a Particle System and replacing the Smoothstep with a Gradient.

    Any help would be appreciated!
     
  2. rmufrancisco

    rmufrancisco

    Joined:
    Jul 5, 2019
    Posts:
    2
    Bumping for visibility.