-
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.
[MAPS3D-847] Add support for landmark shadows (#534)
* Add shadow support for landmarks Tests still need conflation to work as expected * Add shadows render test
- Loading branch information
1 parent
1d15622
commit 6d3549c
Showing
14 changed files
with
1,359 additions
and
9 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
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+177 KB
test/integration/render-tests/model-layer/landmark-mbx-shadows/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions
60
test/integration/render-tests/model-layer/landmark-mbx-shadows/style.json
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,60 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"allowed": 0.00025, | ||
"width": 1024, | ||
"height": 1024 | ||
} | ||
}, | ||
"lights": [ | ||
{ | ||
"type": "ambient", | ||
"id": "test_ambient", | ||
"properties": { | ||
"color": "rgba(255, 255, 255, 1)", | ||
"intensity": 0.2 | ||
} | ||
}, | ||
{ | ||
"type": "directional", | ||
"id": "test_directional", | ||
"properties": { | ||
"cast-shadows" : true, | ||
"color": "rgba(255, 255, 255, 1)", | ||
"intensity": 0.7 | ||
} | ||
} | ||
], | ||
"sources": { | ||
"file-system-tiles": { | ||
"type": "batched-model", | ||
"maxzoom": 14, | ||
"tiles": [ | ||
"local://models/landmark/mbx/{x}-{y}-{z}.b3dm" | ||
] | ||
} | ||
}, | ||
"pitch": 70, | ||
"zoom": 17.85, | ||
"bearing": 126, | ||
"center": [ | ||
11.5605, | ||
48.1762 | ||
], | ||
"layers": [ | ||
{ | ||
"type": "background", | ||
"paint": { | ||
"background-color": "lightgray" | ||
}, | ||
"id": "land" | ||
}, | ||
{ | ||
"minzoom": 14.0, | ||
"type": "model", | ||
"source": "file-system-tiles", | ||
"id": "landmarks" | ||
} | ||
] | ||
} |
Binary file added
BIN
+304 KB
...ation/render-tests/model-layer/landmark-part-styling-munich-museum/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.