Commit d22bbbc
[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]>
(cherry picked from commit c69f78e0b6842a819468e2256335a600de8b58f8)
GitOrigin-RevId: 7d14f31cfb96e1df8796e09fc4e290a7bbf22fd21 parent c244435 commit d22bbbc
File tree
3 files changed
+24
-0
lines changed- Sources/MapboxMaps/Style/Generated/Light
- Tests/MapboxMapsTests/Style/Generated/Light
3 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments