Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How about ZTEST Greater?

Discussion in 'Shaders' started by dreamerflyer, Dec 13, 2014.

  1. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    When i turn on Ztest Greater ,the model will overlap itself ,how to avoid caculate itself?
     

    Attached Files:

  2. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Less than.
     
  3. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    Hi imaginaryhuman,I want Only overlay the part which be occluded ,how to made that?
     

    Attached Files:

    • only.png
      only.png
      File size:
      27.9 KB
      Views:
      872
  4. dreamerflyer

    dreamerflyer

    Joined:
    Jun 11, 2011
    Posts:
    927
    OK,get it 。I changed the pass order to correct.