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

RTT texture flip flag #3346

Merged
merged 5 commits into from
Jul 20, 2021
Merged

RTT texture flip flag #3346

merged 5 commits into from
Jul 20, 2021

Conversation

slimbuck
Copy link
Member

In #3335 we inverted V coordinates of 2d elements and built-in primitives to compensate for -not- flipping images at load time.

This change caused dynamically-rendered (RTT) textures to appear upside down.

This PR adds a flag to a render target flipY which will cause it to be rendered upside down. Enabling this flag on render targets destined for UI rendering will result in images correctly orientated.

@slimbuck slimbuck added bug area: graphics Graphics related issue labels Jul 20, 2021
@slimbuck slimbuck requested a review from a team July 20, 2021 11:57
@slimbuck slimbuck self-assigned this Jul 20, 2021
@slimbuck slimbuck merged commit c944d38 into playcanvas:master Jul 20, 2021
@slimbuck slimbuck deleted the rtt-flip-fix branch July 20, 2021 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants