Search Unity

Question Vertex Displacement dependend on Camera

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

  1. Scarcop

    Scarcop

    Joined:
    Jun 7, 2018
    Posts:
    13
    I'm using the graph in the picture to let my vegetation wave in the wind. And all works fine, BUT when I move the camera it seems like this affects the waving speed. So while I move the camera, the objects waves that much faster.
    Why is that and how can i fix it? image_2020-11-06_154753.png
     
    Last edited: Nov 6, 2020
  2. Scarcop

    Scarcop

    Joined:
    Jun 7, 2018
    Posts:
    13
    It was because HDRP uses world position relative to the camera. After switching from word to absolute word on all nodes it worked fine.