Search Unity

Question Sample procedural patterns WorldUV

Discussion in 'Shader Graph' started by alkaitagi, Jan 30, 2020.

  1. alkaitagi

    alkaitagi

    Joined:
    Dec 8, 2016
    Posts:
    87
    I want to achieve global grid effect that would not move with Renderer, i.e. it would have worlds-space UV. My first implementation was drawing grid segment sprite, creating a simple shader where I would plug in Position.World into smaple texture's UV and then I was tiling the sprite through sprite renderer. Now I want to use one of Unity's sample procedural nodes (Grid) instead of static .png. But now when plugging in Position.World into the Node's tiling I am getting parallax, i.e. when the pattern moves slower than object's transform. How can I achieve this effect without the parallax?

    upload_2020-1-30_16-50-30.png