Search Unity

Overlay over specific material

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

  1. silentslack

    silentslack

    Joined:
    Apr 5, 2013
    Posts:
    266
    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