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

2D UI rendering honors RenderTarget.flipY option #4208

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Apr 22, 2022

Fixes #4097

For 3D rendering, the flipY is handling by inverse scaling the projection matrix. 2D rendering does not use projection matrix (vertices are in screen space directly), and so a flip sign is manually applied in the vertex shader.

@mvaligursky mvaligursky merged commit c1ae608 into main Apr 22, 2022
@mvaligursky mvaligursky deleted the mvaligursky-flip-y-ui branch April 22, 2022 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui UI related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RenderTarget with flipY doesn't render screen space UI
3 participants