Skip to content
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

fix rendering fills above semi-translucent fill-extrusions #8661

Merged
merged 1 commit into from
Aug 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/render/painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ class Painter {
}

stencilModeFor3D(): StencilMode {
this.currentStencilSource = undefined;

if (this.nextStencilID + 1 > 256) {
this.clearStencil();
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"center": [
-113.26903,
35.9654
],
"zoom": 11,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Polygon",
"coordinates": [
[
[
-113.27384948730469,
35.962
],
[
-113.26421051269531,
35.962
],
[
-113.26421051269531,
35.97
],
[
-113.27384948730469,
35.97
],
[
-113.27384948730469,
35.962
]
]
]
}
}
},
"layers": [
{
"id": "fill-extrusion-translucent",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrusion-color": "red"
}
},
{
"id": "fill-opaque",
"type": "fill",
"source": "geojson",
"paint": {
"fill-color": "blue"
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"center": [
-113.26903,
35.9654
],
"zoom": 11,
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Polygon",
"coordinates": [
[
[
-113.27384948730469,
35.962
],
[
-113.26421051269531,
35.962
],
[
-113.26421051269531,
35.97
],
[
-113.27384948730469,
35.97
],
[
-113.27384948730469,
35.962
]
]
]
}
}
},
"layers": [
{
"id": "fill-extrusion-translucent",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrusion-color": "red"
}
},
{
"id": "fill-translucent",
"type": "fill",
"source": "geojson",
"paint": {
"fill-opacity": 0.5,
"fill-color": "blue"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrusion-opacity": 0.5,
"fill-extrusion-color": "red"
}
},
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrusion-opacity": 0.5,
"fill-extrusion-color": "red"
}
},
Expand Down