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

Question Custom Shader Misplacement.

Discussion in 'Shader Graph' started by MisterSixtyFour, Jan 23, 2023.

  1. MisterSixtyFour

    MisterSixtyFour

    Joined:
    Jun 28, 2021
    Posts:
    60
    I'm working on this laser for a video game, and it has a ring and the beam part.
    Both the ring and beam use the same custom shader: https://github.com/greggman/hsva-unity

    However, how do I make the rings go around the beam instead of behind or in front of it using the same shader?
     
    Last edited: Jan 23, 2023
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Why don't you make things easier for yourself?
    Cut the ring in half. Make the half deeper in the image sort behind the beam, and the closer one in front of the beam.