Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flipped projection matrix on iOS #156

Open
ahegedusniantic opened this issue Jan 13, 2025 · 2 comments
Open

Flipped projection matrix on iOS #156

ahegedusniantic opened this issue Jan 13, 2025 · 2 comments

Comments

@ahegedusniantic
Copy link

Thanks for all the hard work from everyone. I have been experimenting with using this renderer on iOS. I ran into an issue where everything was drawn upside down. I used to be able to fix this by flipping the projection matrix, but since the new commits related to VR, rendering now uses the built-in projection matrix (UNITY_MATRIX_P and UNITY_MATRIX_VP) so my fix is no longer applicable. Any insight how to fix this issue would be very welcome. Thanks!

@aras-p
Copy link
Owner

aras-p commented Jan 13, 2025

@ahegedusniantic hmm curious. I wonder why it is not flipped on macOS then. Since both of these would be going through Metal graphics APIs and should generally behave extremely similarly.

@ahegedusniantic
Copy link
Author

I ended up injecting a matrix to multiply UNITY_MATRIX_P every time it is used. Of course this just treats the symptom, it would be good to get to the root of this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants