Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase fill_extrusion base/height precision. #7292

Merged
merged 1 commit into from
Sep 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/shaders/fill_extrusion.fragment.glsl
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
varying vec4 v_color;
#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define highp vec4 color

void main() {
#pragma mapbox: initialize lowp float base
#pragma mapbox: initialize lowp float height
#pragma mapbox: initialize highp vec4 color

gl_FragColor = v_color;

#ifdef OVERDRAW_INSPECTOR
Expand Down
8 changes: 4 additions & 4 deletions src/shaders/fill_extrusion.vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ attribute vec4 a_normal_ed;

varying vec4 v_color;

#pragma mapbox: define lowp float base
#pragma mapbox: define lowp float height
#pragma mapbox: define highp float base
#pragma mapbox: define highp float height

#pragma mapbox: define highp vec4 color

void main() {
#pragma mapbox: initialize lowp float base
#pragma mapbox: initialize lowp float height
#pragma mapbox: initialize highp float base
#pragma mapbox: initialize highp float height
#pragma mapbox: initialize highp vec4 color

vec3 normal = a_normal_ed.xyz;
Expand Down