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

Feature: support sprite z-order (sorting) #8

Open
ivan-mogilko opened this issue Jul 27, 2022 · 0 comments
Open

Feature: support sprite z-order (sorting) #8

ivan-mogilko opened this issue Jul 27, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@ivan-mogilko
Copy link
Owner

I think the reason why this plugin did not support this from the start is the fact that the engine itself does not use z coordinate at all, and all of its textures are rendered at z = 0 (engine sorts the sprites itself before passing into renderer).

If this plugin would use z coordinate, that would not work at all (due to perspective / clipping settings applied by the engine), or will break sorting between plugin's and engine's render stages.

One solution is to do same thing as engine is currently doing: that is sort the group of sprites ourselves (per render stage).

@ivan-mogilko ivan-mogilko added the enhancement New feature or request label Jul 27, 2022
@ivan-mogilko ivan-mogilko added this to the v1.1 milestone Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant