summaryrefslogtreecommitdiff
path: root/scripts/generate-shaders.js
Commit message (Collapse)AuthorAgeFilesLines
* [core] Use separate attribute component for line normalsJohn Firebaugh2017-08-081-2/+2
| | | | Broadcom GPUs don't cope well with using the least significant bit for this.
* [core] Simplify generate-shaders.jsJohn Firebaugh2017-08-021-77/+11
| | | | We moved the #pragma ⇢ #ifndef logic into gl-js.
* fix shader generation scriptAnsis Brammanis2017-06-161-15/+9
| | | | | | the main fix is switching from ifdef -> ifndef The rest of the changes just make a cleaner diff.
* [core] add shader defines for enabling/disabling attributes/uniforms for DDSKonstantin Käfer2017-06-131-9/+40
|
* [core] Reduce number of varyings to 8 or lessJohn Firebaugh2017-06-131-38/+27
| | | | For #pragmas, don't generate varyings for attributes that aren't used by the fragment shader. Pack other varyings more tightly.
* [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.