Search Unity

Question How to reset offset (tiling and offset node)?

Discussion in 'Shader Graph' started by Swains, Oct 23, 2020.

  1. Swains

    Swains

    Joined:
    Jun 17, 2016
    Posts:
    5
    I'm trying to replicate something similar to this (
    ) I can create the general idea but it tiles too quick, id like to make offset once, then pause and reset its position before offsetting it again as opposed to it just looping infinitely. Is this at all possible? Cheers
     
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Hi,

    Do you want to do it completely within shader graph, without any textures?
    If you can use textures, you can increase the interval between the flashes by just adding black, empty space to your flash texture. Then just animate the texture movement somehow, like offsetting the UVs.

    Alternatively you could also create it fully procedurally within Shader Graph. There are many ways you could do this. For example, you could use min/max to isolate a flash pulse, then offset that in UV space using time or some external parameter your feed to your shader.