-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent transparency for multiple fill-extrusions #5288
Comments
Right — what you're seeing is based on layer order:
Then in the main (translucent) rendering pass,
It's possible we could fix this down the road with clever use of stencil testing, but this may necessitate introducing more rendering passes and it's hard to say if/when this will be prioritized. |
(In the meantime, this can be mitigated by potentially being strategic about layer order, or otherwise reducing the number of layers by using data-driven styling, which is always preferable for performance reasons.) |
I did not notice even my layer 2 (green roof) is transparent for buildings because of effective height of 0. With that in mind behaviour is consistent through all extrusion layers. |
Refers to mapbox-gl-js 0.40.0
Likely rendering fill extrusions in common 3d space is involved:
#5101
Adding more than 2 fill-extrusion layers causes different transparency behaviour than for first 2.
Steps to Trigger Behavior
Expected Behavior
A: Either all fill-extrusion layers get transparency applied separately or
B: All fill-extrusion layers are blended and then transparency is applied. Guess this is intended and preferred.
The text was updated successfully, but these errors were encountered: