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
"cheery" wrote:
I thought perspective matrices don't invert well. But I can as well try it out.
Well, you can always pass the eye space coordinates from the vertex shader to the fragment shader. Just create a new out value and populate it with the incoming vertex transformed only by the view 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