Skip to content

Commit

Permalink
add sky/fog expect tests (#3649)
Browse files Browse the repository at this point in the history
  • Loading branch information
acalcutt authored Feb 1, 2024
1 parent 7918fba commit 32ae12b
Show file tree
Hide file tree
Showing 4 changed files with 182 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions test/integration/render/tests/terrain/fog/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"version": 8,
"sprite": "local://sprites/sprite",
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"timeout": 60000,
"metadata": {
"test": {
"height": 512,
"width": 512,
"maxPitch": 85,
"operations": [
[
"wait"
],
[
"setTerrain"
],
[
"wait"
],
[
"setTerrain",
{
"source": "terrain",
"exaggeration": 1
}
],
[
"wait"
]
]
}
},
"center": [
35.38,
31.55
],
"zoom": 15,
"pitch": 85,
"sources": {
"hillshadeSource": {
"type": "raster-dem",
"tiles": [
"local://tiles/terrain/{z}-{x}-{y}.terrain.png"
],
"minzoom": 0,
"maxzoom": 12
},
"terrain": {
"type": "raster-dem",
"tiles": [
"local://tiles/terrain/{z}-{x}-{y}.terrain.png"
],
"minzoom": 7,
"maxzoom": 12,
"tileSize": 256
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "#ccaa83"
}
},
{
"id": "hills",
"type": "hillshade",
"source": "hillshadeSource",
"layout": {
"visibility": "visible"
},
"paint": {
"hillshade-shadow-color": "#473B24",
"hillshade-illumination-anchor": "map",
"hillshade-illumination-direction": 150
}
}
],
"terrain": {
"source": "terrain",
"exaggeration": 1
},
"sky": {
"sky-color": "#199EF3",
"fog-color": "#daeff0",
"horizon-blend": 0,
"fog-blend": 0
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions test/integration/render/tests/terrain/sky/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"version": 8,
"sprite": "local://sprites/sprite",
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"timeout": 60000,
"metadata": {
"test": {
"height": 512,
"width": 512,
"maxPitch": 85,
"operations": [
[
"wait"
],
[
"setTerrain"
],
[
"wait"
],
[
"setTerrain",
{
"source": "terrain",
"exaggeration": 1
}
],
[
"wait"
]
]
}
},
"center": [
35.38,
31.55
],
"zoom": 15,
"pitch": 85,
"sources": {
"hillshadeSource": {
"type": "raster-dem",
"tiles": [
"local://tiles/terrain/{z}-{x}-{y}.terrain.png"
],
"minzoom": 0,
"maxzoom": 12
},
"terrain": {
"type": "raster-dem",
"tiles": [
"local://tiles/terrain/{z}-{x}-{y}.terrain.png"
],
"minzoom": 7,
"maxzoom": 12,
"tileSize": 256
}
},
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "#ccaa83"
}
},
{
"id": "hills",
"type": "hillshade",
"source": "hillshadeSource",
"layout": {
"visibility": "visible"
},
"paint": {
"hillshade-shadow-color": "#473B24",
"hillshade-illumination-anchor": "map",
"hillshade-illumination-direction": 150
}
}
],
"terrain": {
"source": "terrain",
"exaggeration": 1
},
"sky": {
"sky-color": "#199EF3",
"fog-color": "#daeff0",
"horizon-blend": 1,
"fog-blend": 1
}
}

0 comments on commit 32ae12b

Please sign in to comment.