Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Offset UV of RGB in Shader Graph?

Discussion in 'Shader Graph' started by pepperopigeon, Nov 6, 2020.

  1. pepperopigeon

    pepperopigeon

    Joined:
    Apr 11, 2019
    Posts:
    2
    Hi all,
    I'm new to shadergraph and have created a procedural 'texture', however it isn't a texture yet. I'd like to manipulate the UV coordinates of what I created but the only way I figured out to do that is using the Sample Texture 2D node. I cannot find a way to convert my RGB values to something the Sample Texture 2D node accepts.
    problem.png
    Is there another way I could manipulate the UV's or a way to convert the RGB values to a texture?

    Thanks!
     
    DaniyarGilymov likes this.
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    To move a shape, you move (change) the UV coordinates. That's the most likely solution. Not after your shape is already somewhere, but before it's rendered.
     
    pepperopigeon likes this.
  3. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    Here's one basic example:

    20201106_unity_shader_graph1.png
     
    pepperopigeon likes this.