Skip to content
This repository was archived by the owner on Mar 23, 2019. It is now read-only.

Update circle shader code for Mapbox GL native - #4

Merged
brunoabinader merged 1 commit into
masterfrom
native-circle
May 31, 2016
Merged

brunoabinader merged 1 commit into
masterfrom
native-circle

Conversation

@brunoabinader

Copy link
Copy Markdown
Contributor

Ported the following patches:

- [convert mat4 exMatrix to a vec2 extrudeScale](a8d549b)
- [Enabled data-driven styling for circle-radius](4356e41)
- [Reduce shader boilerplate, refactor "Bucket"](7d3da8f)
@jfirebaugh

Copy link
Copy Markdown
Contributor

👍

@brunoabinader
brunoabinader merged commit 13aad76 into master May 31, 2016
@brunoabinader
brunoabinader deleted the native-circle branch May 31, 2016 15:25
Comment thread src/circle.vertex.glsl
void main(void) {
#ifdef MAPBOX_GL_JS

#pragma mapbox: initialize color lowp

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to retain this #pragma statement for data-driven styling functions to work in GL JS. If color needs to be an attribute, some initialization is required in the vertex shader to make the value accessible by the fragment shader.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants