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 Convert Screen Position Back To Object Position

Discussion in 'Shader Graph' started by ChaseRLewis73003, Oct 6, 2019.

  1. ChaseRLewis73003

    ChaseRLewis73003

    Joined:
    Apr 23, 2012
    Posts:
    85
    I'm wanting to take an object & its normals in screen space then offset it by a fixed amount. However, I'm having a hard time finding out how to convert them back. I think it has something to do with the perspective correction from dividing by w that has already occurred. Any help would be appreciated.

    Screenshot from 2019-10-06 17-48-30.png Screenshot from 2019-10-06 17-48-46.png