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

How to remove the overlay material?

Discussion in 'Shaders' started by yaaru, Sep 22, 2017.

  1. yaaru

    yaaru

    Joined:
    Mar 3, 2017
    Posts:
    15
    Hello!
    How to remove overlay materials (example in the picture)?
    It is necessary - if two pipes intersect and their materials are duplicated, then make it so that it would not be visible.
    I guess you need to look in the direction of the shader?

    I will be grateful for any advice!
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      4.7 KB
      Views:
      773
    • 2.jpg
      2.jpg
      File size:
      4.7 KB
      Views:
      689
  2. yaaru

    yaaru

    Joined:
    Mar 3, 2017
    Posts:
    15
    Gentlemen, you really need a solution!
    How can I be?
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    do you need to use transparent material?
     
  4. yaaru

    yaaru

    Joined:
    Mar 3, 2017
    Posts:
    15
    Yes, under the conditions of the problem this is not discussed
     
  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
  6. yaaru

    yaaru

    Joined:
    Mar 3, 2017
    Posts:
    15
    Thank you, but it's not quite that.
    Or I did not apply it correctly.
    The pipe in the picture consists of + -20 objects, each has its own mesh.
    And what you offer works only if the mesh is on one object.

    The pipe drawing algorithm assumes exactly such an implementation (from several objects).

    Maybe I need to dig the other way? For example blur?
    I will be grateful for anyone?