Skip to content

Commit 2907954

Browse files
authored
Disable fog tile culling with low horizon-blend (#10679)
1 parent 6b1c25f commit 2907954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render/painter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class Painter {
181181

182182
_updateFog(style: Style) {
183183
const fog = style.fog;
184-
if (!fog || (fog && fog.getOpacity(this.transform.pitch) !== 1.0)) {
184+
if (!fog || fog.getOpacity(this.transform.pitch) < 1 || fog.properties.get('horizon-blend') < 0.03) {
185185
this.transform.fogCullDistSq = null;
186186
return;
187187
}

0 commit comments

Comments
 (0)