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 screen space uv

Discussion in 'Shader Graph' started by a0950212, Aug 16, 2019.

  1. a0950212

    a0950212

    Joined:
    Sep 28, 2014
    Posts:
    7
    I'm trying to recreate a screen-space UV shader.
    It's really close to what I want, but the behavior of uv.x and uv.y look different.



    I really need your help! Thank you.
     

    Attached Files:

  2. iSinner

    iSinner

    Joined:
    Dec 5, 2013
    Posts:
    201
    Change the screen space mode to default, then the (0,0) will be in the lower left corner of the screen and (1,1) in the top right. If you use it for UV, then you would sample the texture as if it were unwrapped in screen space. Hope this helps.
     
    keeponshading likes this.
  3. a0950212

    a0950212

    Joined:
    Sep 28, 2014
    Posts:
    7
    @iSinner Thank you for replying!
    While I changed the Screen Position node to default, it getters more strange.

    The right one is made in script, the left one is made in graph.