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

Support symbol marks with multiple shapes #18

Merged
merged 3 commits into from
Jan 11, 2024
Merged

Conversation

jonmmease
Copy link
Owner

Adds support for symbol marks with multiple shapes.

To do this while preserving instancing, this PR merges the geometric and circle symbol vertex shaders. The vertices for all of the symbols that are used are sent to the vertex shader. The instance struct includes the index of the shape that should be used for that instance. The fragments associated with all other vertices are discarded.

Here's an example of a single symbol marks with 3 shapes, rendered by this PR:

symbol-mixed_symbols

@jonmmease jonmmease merged commit b26fd07 into main Jan 11, 2024
1 check passed
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.

1 participant