Quantcast
Channel: Questions in topic: "post processing"
Viewing all articles
Browse latest Browse all 713

How do you get the world position from the screen position in a URP shader graph used in a ScriptableRenderPass?

$
0
0
I'm using a shader graph in the Universal Shader Pipeline (URP) to do some post-processing in a ScriptableRenderPass. How do I get the world coordinates of the screen position? I have tried using the View Direction node, set to World: ![alt text][1] And I have tried the Screen Position node: ![alt text][2] Neither seems to be working because the colors change as I move the camera around, but I would expect the color to stay the same since the world position of the GameObject is not changing. Any suggestions? [1]: /storage/temp/165966-worldviewdirection.png [2]: /storage/temp/165967-screen-position.png

Viewing all articles
Browse latest Browse all 713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>