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

Fix render glitches and support Spritekit, SceneKit and GLKit #46

Merged
merged 3 commits into from
Mar 19, 2018

Conversation

ralfebert
Copy link

Fixes issue #30

This also changes UIView+Render to only render the layer. The current code actually renders the image twice, once via drawHierarchy and once via layer.render - if there is transparency involved, having these two images drawn on top of each other causes render glitches.

layer.render seems to always work while drawHierarchy only works when a UIWindow/host application is present.

Unfortunately, this might change the rendered image - no visible changes, but the values will differ +- 2 or 3. There seems to be some subtle difference in rendering depending on the API you use. So users who have generated test images before might have to regenerate them :(

@skyweb07
Copy link
Owner

This is AWESOME mate!!!, sorry for the delay in the review, thank you very much for this, I'll prepare a release with this great feature

@skyweb07 skyweb07 merged commit 6a826a1 into skyweb07:release/0.3.0 Mar 19, 2018
@ralfebert ralfebert deleted the spritekit branch April 27, 2019 12:27
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

Successfully merging this pull request may close these issues.

2 participants