- Home /
Scene Depth Node, find depth value from x/y position of camera frame
Using LWRP, Shadergraph, & ARFoundation.
Basically I want to feed the shader a x/y point and it will give me a depth value. Once that is solved, I can use this depth value in a script to depth position a 3d object.
I'm using the shadergraph example here, but not quite sure the best route to add onto this to achieve my goal: https://answers.unity.com/questions/1587077/how-to-use-scene-depth-node-in-shadergraph.html
Hmmm, if I understood correctly, then you are trying to use the wrong thing, what I understood is that you want to have a position available in your script based on x,y positions of your screen, and you can do that simply by using Physics.Raycast
Answer by aadilkhan9409 · May 15, 2019 at 07:58 AM
I should say only that its awesome! The blog is informational play dvd windows 10/ and always produce amazing things.