Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question changing position of vonoroi node

Discussion in 'Shader Graph' started by Fluffysnails46, Apr 18, 2022.

  1. Fluffysnails46

    Fluffysnails46

    Joined:
    Jan 15, 2021
    Posts:
    52
    I was working on a shader using vonoroi, and i wanted to make the object that has the shader connect the effect it has with other objects next to it, but there is no way to change the position of the vonoroi noise.
     
  2. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,123
    UV does what you described.
     
  3. Fluffysnails46

    Fluffysnails46

    Joined:
    Jan 15, 2021
    Posts:
    52
    I dont exactly understand how to change the uv to work. at the moment if i use a vector2, it just scales it
     
  4. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,123
    UV is just coordinates on texture. You can unwrap mesh UV in any way you want and this is what shader uses most of the time, however you can use anything you like as UV, like world position.

    upload_2022-4-18_20-50-16.png
    If I am correct you want to use position as UV, but first play a bit with tiling and offset.
     
    Fluffysnails46 likes this.
  5. Fluffysnails46

    Fluffysnails46

    Joined:
    Jan 15, 2021
    Posts:
    52
    It works! Thanks for the help!