You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very bluesky, but it would be good to be able to style features based on their attributes, for example buildings based on heights, etc.
You could just split things into many buckets, but that will blow up the number of draw calls. The other approach would be to optionally add certain attributes to the buffers and pass them into shaders.
Since attributes can't be optional in shaders, we'd need a separate shader for each combination of attributes. As scary as it sounds, generating the shader code could work well.
Activity
ansis commentedon Feb 20, 2014
I was wrong about this.
gl.vertexAttrib[1234][fv](index, value)jfirebaugh commentedon Mar 5, 2015
⇢ mapbox/mapbox-gl-style-spec#249
Merge pull request mapbox#146 from mapbox/edit-selection-events