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

attribute based styles #217

Closed
ansis opened this issue Dec 9, 2013 · 1 comment
Closed

attribute based styles #217

ansis opened this issue Dec 9, 2013 · 1 comment

Comments

@ansis
Copy link
Contributor

ansis commented Dec 9, 2013

Currently all features in a bucket are rendered with the same style. It would be awesome to be able to optionally read these these style properties from attributes instead of uniforms. This would let us specify style properties individually for each feature.

We would need to:

  • generate necessary shader code on initial load (switch between uniform/attribute)
  • create more flexible buffer views (not just a small number of predefined ones)
  • be able to match buffer views to shaders, automatically binding attributes

This may not be that important because for many use cases we could just split data into multiple buckets. However, I think the flexibility that would come with some of the restructuring would be useful when we start looking at 3d, etc.

@ansis
Copy link
Contributor Author

ansis commented Feb 25, 2014

duplicate of #146

@ansis ansis closed this as completed Feb 25, 2014
bensleveritt pushed a commit to bensleveritt/mapbox-gl-js that referenced this issue Oct 24, 2016
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

1 participant