Search Unity

Generating flat UV's that pan with an object?

Discussion in 'Shaders' started by NeilM0, Jun 28, 2015.

  1. NeilM0

    NeilM0

    Joined:
    Mar 31, 2009
    Posts:
    135
    I'm having trouble coming up with the UV's that I would like to be using in my project and I was hoping someone could help point me in the correct direction.

    What I'm looking for is very similar to the "Detail Texture in Screen Space" UV's in the help files ( http://docs.unity3d.com/Manual/SL-SurfaceShaderExamples.html ), but when the object pans from left to right/up and down, I would also like the UV's to shift with it so that it doesn't look like you're looking through a window. In the example the UV's are fixed with the unity viewport so it looks like the texture is sliding over the object. I'm looking to avoid that.
     
  2. antislash

    antislash

    Joined:
    Apr 23, 2015
    Posts:
    646
  3. NeilM0

    NeilM0

    Joined:
    Mar 31, 2009
    Posts:
    135