Skip to content

Commit

Permalink
Disable fog tile culling with low horizon-blend (#10679)
Browse files Browse the repository at this point in the history
  • Loading branch information
rreusser authored May 18, 2021
1 parent 6b1c25f commit 2907954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class Painter {

_updateFog(style: Style) {
const fog = style.fog;
if (!fog || (fog && fog.getOpacity(this.transform.pitch) !== 1.0)) {
if (!fog || fog.getOpacity(this.transform.pitch) < 1 || fog.properties.get('horizon-blend') < 0.03) {
this.transform.fogCullDistSq = null;
return;
}
Expand Down

0 comments on commit 2907954

Please sign in to comment.