Search Unity

Two stencil?

Discussion in 'Shaders' started by pepescript, Jul 23, 2019.

  1. pepescript

    pepescript

    Joined:
    Jul 23, 2019
    Posts:
    1
    Hi, I'm learning how shaders work and now I'm trying to understand stencils.
    I've experimenting with a shader I found on stackoverflow, I can't attach the link but the thread was "Unity Shader highlighting overlaps".
    I'm wondering if it's possible to create two stencil shaders that overlaps with certain objects and not with others.

    Thanks.

    EDIT: Already solved! the trick was the Render Queue.
     
    Last edited: Jul 23, 2019