Search Unity

Question Tile-based directional flow effect

Discussion in 'Shaders' started by anthonytrianh, Nov 21, 2020.

  1. anthonytrianh

    anthonytrianh

    Joined:
    Dec 7, 2018
    Posts:
    6
    Hi, I'm trying to replicate a directional flowing effect similar to here


    But I'm not sure how to get the flow to blend smoothly/change direction at the corner tiles.
    Any help or ideas on how I can achieve this is much appreciated.
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Couldn't you just use texture tiles that animate in same sync, and have corner tiles made manually etc.? Not sure if a shader would be here the best choice. The shader itself wouldn't know where it is, if it's a corner tile or what, so you would have to devise a way to pass that information to your shader and so on.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,406