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

Sorting for transparent mesh #48

Open
richfwebb opened this issue Jul 1, 2024 · 2 comments
Open

Sorting for transparent mesh #48

richfwebb opened this issue Jul 1, 2024 · 2 comments

Comments

@richfwebb
Copy link

richfwebb commented Jul 1, 2024

I'm running into an issue where sprites with semi-transparent areas need to be sorted back-to-front per-frame before render, for example clouds. Otherwise, you get issues like this image, where the cloud should be fading to 0 opacity, revealing the cloud behind it, but instead the overlapping area becomes fully white.
Screenshot from 2024-07-01 12-41-22

@jerzakm
Copy link
Owner

jerzakm commented Jul 25, 2024

I'm running into an issue where sprites with semi-transparent areas need to be sorted back-to-front per-frame before render, for example clouds. Otherwise, you get issues like this image, where the cloud should be fading to 0 opacity, revealing the cloud behind it, but instead the overlapping area becomes fully white. Screenshot from 2024-07-01 12-41-22

Sorry for late reply, I completely missed this. I think I'm going to work on some improvements for the library in the coming weeks and sorting is definitely one of the things on my radar.

Just to be sure, could you make a super simple reproduction (just a scene with a couple of cloud sprites like above) so that I can test the library as I work on it?

@lambocorp
Copy link

spriteSorting.txt
merged

This email got buried somehow! Thanks for getting back to me. Not sure if it still relevant or not, but this test might help!

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

3 participants