Hi! I am making a post-processing shader and need to get the view direction of a neighbor pixel for a sort of ray cast. However I can't figure out a way to get it from just the screen uv and the matrices (I am really no math expert). Can anyone help?
How to get the VIEW vector from SCREEN_UV in shader?
Asked Answered
Schroer You can rgb encode the vector, render it to screen and read the values in the next pass.
© 2022 - 2024 — McMap. All rights reserved.