Commit 1824e83
[MAPS3D-1933] Allow specifying ground shadow draw position in layer stack (#8631)
Fixes https://mapbox.atlassian.net/browse/MAPS3D-1933
Fixes https://mapbox.atlassian.net/browse/MAPS3D-2090
Add new property `shadow-draw-before-layer` to the directional light.
When terrain is disabled and the layer is specified, shadows are drawn
to the ground before the specified layer. This allows customers to fix
issues like shown in the image below. The problem is that the style has
shadow-casting layers after the middle slot, but moving the symbol layer
(or similar) to the top slot is not desirable. Existing behavior was to
always render the shadow to the ground after the last shadow-casting
layer, but this is not acceptable in some cases.
<img width="640" height="481" alt="image"
src="https://github.com/user-attachments/assets/fe5009fa-e69f-48b2-a947-d480d927917b"
/>
```
<public>
Add shadow-draw-before-layer property to directional light to allow specifying shadow draw order.
</public>
```
cc @mapbox/gl-js
cc @mapbox/gl-native
cc @mapbox/maps-ios
cc @mapbox/maps-android
cc @mapbox/sdk-ci
---------
Co-authored-by: Changelog autocreator bot <[email protected]>
GitOrigin-RevId: c69f78e0b6842a819468e2256335a600de8b58f81 parent 6408b81 commit 1824e83
File tree
9 files changed
+215
-1
lines changed- extension-compose
- api
- Release
- src/main/java/com/mapbox/maps/extension/compose/style/lights/generated
- extension-style-app/src/androidTest/java/com/mapbox/maps/testapp/style/light/generated
- extension-style
- api
- Release
- src
- main/java/com/mapbox/maps/extension/style/light/generated
- test/java/com/mapbox/maps/extension/style/light/generated
9 files changed
+215
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4325 | 4325 | | |
4326 | 4326 | | |
4327 | 4327 | | |
| 4328 | + | |
4328 | 4329 | | |
4329 | 4330 | | |
4330 | 4331 | | |
| |||
4335 | 4336 | | |
4336 | 4337 | | |
4337 | 4338 | | |
| 4339 | + | |
4338 | 4340 | | |
4339 | 4341 | | |
4340 | 4342 | | |
| |||
4346 | 4348 | | |
4347 | 4349 | | |
4348 | 4350 | | |
| 4351 | + | |
4349 | 4352 | | |
4350 | 4353 | | |
4351 | 4354 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3627 | 3627 | | |
3628 | 3628 | | |
3629 | 3629 | | |
| 3630 | + | |
3630 | 3631 | | |
3631 | 3632 | | |
3632 | 3633 | | |
| |||
3638 | 3639 | | |
3639 | 3640 | | |
3640 | 3641 | | |
| 3642 | + | |
3641 | 3643 | | |
3642 | 3644 | | |
3643 | 3645 | | |
| |||
Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6974 | 6974 | | |
6975 | 6975 | | |
6976 | 6976 | | |
| 6977 | + | |
| 6978 | + | |
6977 | 6979 | | |
6978 | 6980 | | |
6979 | 6981 | | |
6980 | 6982 | | |
6981 | 6983 | | |
6982 | 6984 | | |
6983 | 6985 | | |
| 6986 | + | |
| 6987 | + | |
6984 | 6988 | | |
6985 | 6989 | | |
6986 | 6990 | | |
| |||
7000 | 7004 | | |
7001 | 7005 | | |
7002 | 7006 | | |
| 7007 | + | |
| 7008 | + | |
7003 | 7009 | | |
7004 | 7010 | | |
7005 | 7011 | | |
| |||
7023 | 7029 | | |
7024 | 7030 | | |
7025 | 7031 | | |
| 7032 | + | |
| 7033 | + | |
7026 | 7034 | | |
7027 | 7035 | | |
7028 | 7036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5793 | 5793 | | |
5794 | 5794 | | |
5795 | 5795 | | |
| 5796 | + | |
| 5797 | + | |
5796 | 5798 | | |
5797 | 5799 | | |
5798 | 5800 | | |
5799 | 5801 | | |
5800 | 5802 | | |
5801 | 5803 | | |
5802 | 5804 | | |
| 5805 | + | |
| 5806 | + | |
5803 | 5807 | | |
5804 | 5808 | | |
5805 | 5809 | | |
| |||
5824 | 5828 | | |
5825 | 5829 | | |
5826 | 5830 | | |
| 5831 | + | |
| 5832 | + | |
5827 | 5833 | | |
5828 | 5834 | | |
5829 | 5835 | | |
| |||
0 commit comments