Forum Discussion
cheery
10 years agoExplorer
How to retrieve eye rays for fragment shader?
I feel that I bother this part of forum for way too often. This is already something I feel like I would figure out soon on myself. On fragment shaders, some nice effects require that you can cast ...
jherico
10 years agoAdventurer
ndc coordinates are not in view-space. They're in either normalized device space or homogenous clip space, depending on whether they've been converted from vec4 to vec3 or not. See http://antongerdelan.net/opengl/raycasting.html
To get from NDC back into view space, you would need the inverse projection matrix.
To get from NDC back into view space, you would need the inverse projection matrix.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device