Search Unity

Question Tiling texture on a slope

Discussion in 'Shader Graph' started by Wojzax, Feb 27, 2020.

  1. Wojzax

    Wojzax

    Joined:
    Jul 22, 2014
    Posts:
    34
    I'm working on a map made of hexagon tiles.
    I want texture UV's to match the slopes that i'm creating (creating by adjusting vertices height).
    As you can see I'm trying different aproaches, yet the UV's are still facing object UV's and are stretching weirdly.
    Is there a way to do this?
     

    Attached Files:

  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    You want to use the triplanar node.
     
  3. Wojzax

    Wojzax

    Joined:
    Jul 22, 2014
    Posts:
    34
    Wow, thanks, didnt know about this node!