Skip to content

Commit

Permalink
Render combination tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick authored Dec 12, 2017
1 parent f008f11 commit c112237
Show file tree
Hide file tree
Showing 248 changed files with 7,733 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/draw_background.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function drawBackground(painter: Painter, sourceCache: SourceCache, layer: Backg
if (painter.renderPass !== pass) return;

context.stencilTest.set(false);

context.depthMask.set(pass === 'opaque');
painter.setDepthSublayer(0);

const properties = new PossiblyEvaluated(fillLayerPaintProperties);
Expand Down
4 changes: 4 additions & 0 deletions test/ignores.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"query-tests/regressions/mapbox-gl-js#4494": "https://github.com/mapbox/mapbox-gl-js/issues/2716",
"render-tests/combinations/fill-extrusion-translucent--background-opaque": "https://github.com/mapbox/mapbox-gl-js/issues/5831",
"render-tests/combinations/fill-extrusion-translucent--fill-opaque": "https://github.com/mapbox/mapbox-gl-js/issues/5831",
"render-tests/combinations/heatmap-translucent--background-opaque": "https://github.com/mapbox/mapbox-gl-js/issues/5831",
"render-tests/combinations/heatmap-translucent--fill-opaque": "https://github.com/mapbox/mapbox-gl-js/issues/5831",
"render-tests/fill-extrusion-pattern/@2x": "https://github.com/mapbox/mapbox-gl-js/issues/3327",
"render-tests/fill-extrusion-pattern/function-2": "https://github.com/mapbox/mapbox-gl-js/issues/3327",
"render-tests/fill-extrusion-pattern/function": "https://github.com/mapbox/mapbox-gl-js/issues/3327",
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,31 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"center": [
-113.26903,
35.9654
],
"zoom": 11,
"sources": {},
"layers": [
{
"id": "background-opaque",
"type": "background",
"paint": {
"background-color": "red"
}
},
{
"id": "background-opaque-2",
"type": "background",
"paint": {
"background-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,32 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64
}
},
"center": [
-113.26903,
35.9654
],
"zoom": 11,
"sources": {},
"layers": [
{
"id": "background-opaque",
"type": "background",
"paint": {
"background-color": "red"
}
},
{
"id": "background-translucent",
"type": "background",
"paint": {
"background-opacity": 0.5,
"background-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,63 @@
{
"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": "background-opaque",
"type": "background",
"paint": {
"background-color": "red"
}
},
{
"id": "circle-translucent",
"type": "circle",
"source": "geojson",
"paint": {
"circle-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,63 @@
{
"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": "background-opaque",
"type": "background",
"paint": {
"background-color": "red"
}
},
{
"id": "fill-extrusion-translucent",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrusion-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,63 @@
{
"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": "background-opaque",
"type": "background",
"paint": {
"background-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,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": "background-opaque",
"type": "background",
"paint": {
"background-color": "red"
}
},
{
"id": "fill-translucent",
"type": "fill",
"source": "geojson",
"paint": {
"fill-opacity": 0.5,
"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.
Loading

0 comments on commit c112237

Please sign in to comment.