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

Z-Sort marks #2

Open
lsh opened this issue Jul 27, 2021 · 2 comments
Open

Z-Sort marks #2

lsh opened this issue Jul 27, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@lsh
Copy link
Member

lsh commented Jul 27, 2021

Currently marks are unsorted in the Z-direction. Reference the implementaitno of visit in vega-scenegraph for a better understanding.

@lsh lsh added the bug Something isn't working label Jul 27, 2021
@lsh lsh self-assigned this Jul 27, 2021
@lsh
Copy link
Member Author

lsh commented Aug 3, 2021

After looking through the way Vega does it it seems like maybe I should make a buffer for items with zindex and a buffer for items without zindex.

@lsh
Copy link
Member Author

lsh commented Aug 3, 2021

An alternative (and cheaper) solution is to sort the z using a the z value in [[builtin(position)]] (probably multiplied by an epsilon).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant