Skip to content

Commit c976ff4

Browse files
Nelariusgithub-actions[bot]
authored andcommitted
Fix precision issue in hillshade causing terrain with steps on Mali
devices GitOrigin-RevId: 3edd9369bb19df4ff7ff291eab562e20ce621a9b
1 parent 2949112 commit c976ff4

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

src/shaders/hillshade_prepare.fragment.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
precision highp float;
22

3-
uniform sampler2D u_image;
3+
uniform highp sampler2D u_image;
44
in vec2 v_pos;
55
uniform vec2 u_dimension;
66
uniform float u_zoom;
23.9 KB
Loading
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"height": 256,
6+
"width": 256
7+
}
8+
},
9+
"center": [-106.271426, 39.237098],
10+
"zoom": 16,
11+
"sources": {
12+
"mapbox-dem": {
13+
"type": "raster-dem",
14+
"tiles": [
15+
"local://tiles/{z}-{x}-{y}.png"
16+
],
17+
"maxzoom": 16,
18+
"tileSize": 514
19+
}
20+
},
21+
"layers": [
22+
{
23+
"id": "background",
24+
"type": "background",
25+
"paint": {
26+
"background-color": "white"
27+
}
28+
},
29+
{
30+
"id": "hillshade",
31+
"type": "hillshade",
32+
"source": "mapbox-dem"
33+
}
34+
]
35+
}
153 KB
Loading

0 commit comments

Comments
 (0)