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

Overlay over specific material

Discussion in 'Shaders' started by silentslack, Mar 13, 2018.

  1. silentslack

    silentslack

    Joined:
    Apr 5, 2013
    Posts:
    391
    Hi,

    I'm looking to render a material (paint) on-top of another (mesh), so from every angle the paint is viewable. However, I don't want to use ZTest Always or a complex camera setup. I only want the paint to be overlayed on the specific mesh material and nothing else.

    Is this possible? I looked into using stencil buffers but couldn't get anything working, I wasn't sure if this was the correct approach. Any pointers here would be appreciated.

    Thanks, Jake