Skip to content

Commit cb46e83

Browse files
spepsgithub-actions[bot]
authored andcommitted
Fix some shadow bias issues in some edge cases (internal-5208)
GitOrigin-RevId: 6427362d326952b95b5172a394afc6cc3594c2b9
1 parent 1cab650 commit cb46e83

File tree

8 files changed

+5
-5
lines changed

8 files changed

+5
-5
lines changed

src/render/draw_fill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ function drawShadows(params: DrawFillParams) {
533533

534534
painter.uploadCommonUniforms(painter.context, program, coord.toUnwrapped());
535535

536-
const uniformValues = elevatedStructuresDepthUniformValues(tileMatrix, 0.001);
536+
const uniformValues = elevatedStructuresDepthUniformValues(tileMatrix, 0.0);
537537

538538
program.draw(painter, gl.TRIANGLES, shadowRenderer.getShadowPassDepthMode(),
539539
StencilMode.disabled, shadowRenderer.getShadowPassColorMode(), CullFaceMode.disabled, uniformValues,
8.26 KB
Loading

test/integration/render-tests/3d-intersections/elevated-symbols-lighting-text/style.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"mapMode": "static",
66
"width": 512,
77
"height": 512,
8-
"allowed": 0.00027,
8+
"allowed": 0.0004,
99
"operations": [
1010
["wait"]
1111
],
-18.3 KB
Loading

test/integration/render-tests/3d-intersections/elevated-symbols-lighting/style.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"mapMode": "static",
66
"width": 512,
77
"height": 512,
8-
"allowed": 0.00027,
8+
"allowed": 0.0004,
99
"operations": [
1010
["wait"]
1111
],

test/integration/render-tests/3d-intersections/road-extend-tilecover/style.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"metadata": {
44
"test": {
55
"mapMode": "static",
6-
"allowed": 0.00025,
6+
"allowed": 0.0003,
77
"spriteFormat": "raster"
88
}
99
},
-36 Bytes
Loading

test/integration/render-tests/3d-intersections/shadows-roads-depth/style.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
["wait"]
1919
],
20-
"allowed": 0.0005,
20+
"allowed": 0.0006,
2121
"spriteFormat": "raster"
2222
}
2323
},

0 commit comments

Comments
 (0)