Search Unity

Overlay over specific material

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

  1. silentslack


    Apr 5, 2013

    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