summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2018-09-19 14:56:58 -0700
committerChris Loer <chris.loer@mapbox.com>2018-09-19 16:19:28 -0700
commitbee9a544bf99d907d9b8e6cbdd7bb4a12715ebbb (patch)
tree9898b1a154dafeba63c51e9d485627f2e33bd955 /src
parentf7a69d15ab1f43598caaa9498cc7e8aa7a11af0c (diff)
downloadqtlocation-mapboxgl-bee9a544bf99d907d9b8e6cbdd7bb4a12715ebbb.tar.gz
[docs] First uncompressed shader source diff
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/shaders/fill_extrusion.cpp58
1 files changed, 9 insertions, 49 deletions
diff --git a/src/mbgl/shaders/fill_extrusion.cpp b/src/mbgl/shaders/fill_extrusion.cpp
index 752b2c7ad7..9c5186fa06 100644
--- a/src/mbgl/shaders/fill_extrusion.cpp
+++ b/src/mbgl/shaders/fill_extrusion.cpp
@@ -25,19 +25,17 @@ varying vec4 v_color;
#ifndef HAS_UNIFORM_u_base
uniform lowp float a_base_t;
-attribute lowp vec2 a_base;
-varying lowp float base;
+attribute highp vec2 a_base;
#else
-uniform lowp float u_base;
+uniform highp float u_base;
#endif
#ifndef HAS_UNIFORM_u_height
uniform lowp float a_height_t;
-attribute lowp vec2 a_height;
-varying lowp float height;
+attribute highp vec2 a_height;
#else
-uniform lowp float u_height;
+uniform highp float u_height;
#endif
@@ -45,7 +43,6 @@ uniform lowp float u_height;
#ifndef HAS_UNIFORM_u_color
uniform lowp float a_color_t;
attribute highp vec4 a_color;
-varying highp vec4 color;
#else
uniform highp vec4 u_color;
#endif
@@ -54,21 +51,21 @@ uniform highp vec4 u_color;
void main() {
#ifndef HAS_UNIFORM_u_base
- base = unpack_mix_vec2(a_base, a_base_t);
+ highp float base = unpack_mix_vec2(a_base, a_base_t);
#else
- lowp float base = u_base;
+ highp float base = u_base;
#endif
#ifndef HAS_UNIFORM_u_height
- height = unpack_mix_vec2(a_height, a_height_t);
+ highp float height = unpack_mix_vec2(a_height, a_height_t);
#else
- lowp float height = u_height;
+ highp float height = u_height;
#endif
#ifndef HAS_UNIFORM_u_color
- color = unpack_mix_color(a_color, a_color_t);
+ highp vec4 color = unpack_mix_color(a_color, a_color_t);
#else
highp vec4 color = u_color;
#endif
@@ -120,44 +117,7 @@ void main() {
/*
varying vec4 v_color;
-#ifndef HAS_UNIFORM_u_base
-varying lowp float base;
-#else
-uniform lowp float u_base;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_height
-varying lowp float height;
-#else
-uniform lowp float u_height;
-#endif
-
-
-#ifndef HAS_UNIFORM_u_color
-varying highp vec4 color;
-#else
-uniform highp vec4 u_color;
-#endif
-
-
void main() {
-
-#ifdef HAS_UNIFORM_u_base
- lowp float base = u_base;
-#endif
-
-
-#ifdef HAS_UNIFORM_u_height
- lowp float height = u_height;
-#endif
-
-
-#ifdef HAS_UNIFORM_u_color
- highp vec4 color = u_color;
-#endif
-
-
gl_FragColor = v_color;
#ifdef OVERDRAW_INSPECTOR