Search Unity

Resolved Compare UV channels

Discussion in 'Shader Graph' started by Abended, Jul 31, 2020.

  1. Abended

    Abended

    Joined:
    Oct 9, 2018
    Posts:
    142
    I have:

    texture1 on uv0
    texture2 on uv1

    Right now they are just added together, but I need to do some magic here.
    I would like to do a comparison to say if the underlying uv0 is u < .5 and v > .5 then draw texture2 on uv1.

    Can anybody give me a push here? I really only know enough to fumble through it. Thanks!

    First Attempt: upload_2020-7-31_15-25-45.png
     
    Last edited: Jul 31, 2020
  2. Abended

    Abended

    Joined:
    Oct 9, 2018
    Posts:
    142
    Actually this one works:
    upload_2020-7-31_17-45-40.png
    a slight change from the split. I remembered something from a video about uvs splitting weird, but it was not the solution here.