Search Unity

Shader ZTest

Discussion in 'Shaders' started by zoooom, Oct 26, 2016.

  1. zoooom

    zoooom

    Joined:
    Feb 8, 2012
    Posts:
    50
    I'm wondering how to go about this task - looking to make a shader(s) that render like the attached image. I know I can use "ZTest Always" to make the red object always render on top of the blue one, but if the green object comes closer to the camera than the red object, I want it to render on top of everything...

     
    Last edited: Apr 27, 2020