-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to hillshade shader to improve opaque hillshade styling (#5870)
* updates to hillshade shader to improve opaque hillshade styling * remove zenith/polar, clean up shader comments * update render tests for shader updates * simplify and rename debug page * add small allowable diff for failing test
- Loading branch information
1 parent
2124161
commit a0a3286
Showing
34 changed files
with
68 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Mapbox GL JS debug page</title> | ||
<meta charset='utf-8'> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||
<link rel='stylesheet' href='/dist/mapbox-gl.css' /> | ||
<style> | ||
body { margin: 0; padding: 0; } | ||
html, body, #map { height: 100%; } | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id='map'></div> | ||
|
||
<script src='/dist/mapbox-gl-dev.js'></script> | ||
<script src='/debug/access_token_generated.js'></script> | ||
<script> | ||
|
||
var map = new mapboxgl.Map({ | ||
container: 'map', | ||
style: 'mapbox://styles/mapbox/cjaudgl840gn32rnrepcb9b9g', // the outdoors-v10 style but without Hillshade layers | ||
center: [-119.5591, 37.715], | ||
zoom: 9 | ||
}); | ||
|
||
map.on('load', function () { | ||
map.addSource('dem', { | ||
"type": "raster-dem", | ||
"url": "mapbox://mapbox.terrain-rgb" | ||
}); | ||
map.addLayer({ | ||
"id": "hillshading", | ||
"source": "dem", | ||
"type": "hillshade" | ||
// insert below waterway-river-canal-shadow; | ||
// where hillshading sits in the Mapbox Outdoors style | ||
}, 'waterway-river-canal-shadow'); | ||
}); | ||
|
||
</script> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.01 KB
(110%)
...render-tests/combinations/background-opaque--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.31 KB
(110%)
...r-tests/combinations/background-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.06 KB
(110%)
...ender-tests/combinations/circle-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.21 KB
(110%)
...sts/combinations/fill-extrusion-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.19 KB
(110%)
...ation/render-tests/combinations/fill-opaque--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.21 KB
(110%)
.../render-tests/combinations/fill-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.1 KB
(110%)
...nder-tests/combinations/heatmap-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.16 KB
(110%)
...r-tests/combinations/hillshade-translucent--background-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.07 KB
(110%)
...ender-tests/combinations/hillshade-translucent--circle-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.01 KB
(110%)
...sts/combinations/hillshade-translucent--fill-extrusion-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+997 Bytes
(110%)
...ation/render-tests/combinations/hillshade-translucent--fill-opaque/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.19 KB
(110%)
.../render-tests/combinations/hillshade-translucent--fill-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+841 Bytes
(110%)
...nder-tests/combinations/hillshade-translucent--heatmap-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+509 Bytes
(100%)
...er-tests/combinations/hillshade-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ | |
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
"height": 64, | ||
"diff": 0.002 | ||
} | ||
}, | ||
"center": [ | ||
|
Binary file modified
BIN
+1.22 KB
(110%)
.../render-tests/combinations/hillshade-translucent--line-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+362 Bytes
(100%)
...ender-tests/combinations/hillshade-translucent--raster-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.13 KB
(110%)
...ender-tests/combinations/hillshade-translucent--symbol-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.2 KB
(110%)
.../render-tests/combinations/line-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+755 Bytes
(110%)
...ender-tests/combinations/raster-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.14 KB
(110%)
...ender-tests/combinations/symbol-translucent--hillshade-translucent/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.72 KB
(110%)
test/integration/render-tests/hillshade-accent-color/default/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11 KB
(110%)
test/integration/render-tests/hillshade-accent-color/literal/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+11.5 KB
(110%)
test/integration/render-tests/hillshade-accent-color/zoom-function/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+7.72 KB
(110%)
test/integration/render-tests/hillshade-highlight-color/default/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.03 KB
(110%)
test/integration/render-tests/hillshade-highlight-color/literal/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+9.63 KB
(110%)
test/integration/render-tests/hillshade-highlight-color/zoom-function/expected.png
Oops, something went wrong.
Binary file modified
BIN
+7.72 KB
(110%)
test/integration/render-tests/hillshade-shadow-color/default/expected.png
Oops, something went wrong.
Binary file modified
BIN
+7.06 KB
(100%)
test/integration/render-tests/hillshade-shadow-color/literal/expected.png
Oops, something went wrong.
Binary file modified
BIN
+3.56 KB
(100%)
test/integration/render-tests/hillshade-shadow-color/zoom-function/expected.png
Oops, something went wrong.