summaryrefslogtreecommitdiff
path: root/scripts/generate-shaders.js
Commit message (Collapse)AuthorAgeFilesLines
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-271-0/+3
|
* Pack min + max into one attribute :muscle:Molly Lloyd2017-03-081-3/+4
| | | | | | | | Some devices supported by Mapbox GL provide only 8 vertex attributes; this change packs existing attributes to get us just under that limit. For properties using a composite function, pack the min and max values into a single attribute with two logical components instead of using two separate attributes and buffers. Special logic is included for color attributes, whose integer components must be packed into the available bits of floating-point attributes. (We don't have access to ivec types in GL ES 2.0.) For source functions, continue to bind just a one-component attribute even though the GLSL type is vec2 (or vec4 for colors). The type-checking done by gl::Attribute is relaxed slightly to accommodate this.
* [core] De-duplicate shader prelude sourceJohn Firebaugh2017-03-081-4/+37
|
* [core] remove gl.hpp include from shader headersKonstantin Käfer2017-02-281-2/+0
|
* [core] Update gl-js; fix $id filters with GeoJSON sourceJohn Firebaugh2017-02-081-1/+1
|
* [core] Use cpp files for shader sourceJohn Firebaugh2017-02-071-28/+46
|
* [core] Check in generated shader codeJohn Firebaugh2017-02-071-0/+84
One step toward eliminating the node/npm dependency for platforms other than node.