Skip to content

support per-feature style attributes #146

Closed

Description

@ansis

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

  1. ansis commented on Feb 20, 2014

    @ansis
    ContributorAuthor

    Since attributes can't be optional in shaders, we'd need a separate shader for each combination of attributes.

    I was wrong about this. gl.vertexAttrib[1234][fv](index, value)

  2. added this to the milestone on Jun 24, 2014
  3. jfirebaugh commented on Mar 5, 2015

    @jfirebaugh
    Contributor
  4. added a commit that references this issue on Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions