Skip to content

[9.4-release] fix(core, layers): hide icons, text and billboard points behind the globe (#10750) - #11014

Merged
chrisgervang merged 1 commit into
9.4-releasefrom
chr/backport-10750-9.4
Nov 3, 2026
Merged

chrisgervang merged 1 commit into
9.4-releasefrom
chr/backport-10750-9.4

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up of #10750, for #10972

Background

Backports #10750 to 9.4-release. Fixes #9554: icons, text and billboard points behind the globe are now hidden.

Change List

Verified on the full 9.4.2 stack (all 13 backports): yarn lint and node tests pass. Local headless and render runs were flaky, and nothing failed that does not also fail on 9.4-release or pass when run alone, so CI here is the real check.


Note

Low Risk
Changes are scoped to GlobeView billboard rendering and quad vertex winding, leaving flat projection modes unaffected.

Overview
Adds horizon occlusion testing and billboard depth offsetting for GlobeView in the project shader module (GLSL and WGSL). Billboards in IconLayer, TextLayer, and ScatterplotLayer now discard objects anchored on the far side of the globe via project_globe_is_occluded, while project_globe_billboard_clipspace adjusts depth toward the camera so the curvature of the earth does not clip visible sprites.

Updates triangle strip vertex order in IconLayer and TextBackgroundLayer to keep quad primitives front-facing under back-face culling after Y-flipping. Also adds API documentation, release notes, and automated render tests covering billboard occlusion on the globe.

Reviewed by Cursor Bugbot for commit b1fe83f. Bugbot is set up for automated code reviews on this repo. Configure here.

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with no outstanding findings.

Summary

This PR backports globe visibility fixes for icons, text, and billboard points.

  • Globe billboards hide blocked anchors and stay whole near the horizon.
  • Icon and text-background quads stay front-facing with GlobeView culling.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Project billboard anchor] --> B{Globe projection?}
  B -->|No| C[Keep existing behavior]
  B -->|Yes| D[Adjust billboard depth]
  D --> E{Anchor hidden by globe?}
  E -->|Yes| F[Move vertices outside drawing bounds]
  E -->|No| G[Draw billboard]
Loading

Reviews (2) · Last reviewed commit: "fix(core, layers): hide icons, text and ..." · Reviewed by Greptile

@coveralls

coveralls commented Nov 3, 2026 •

Copy link
Copy Markdown

Coverage Status

Coverage is 83.009% — chr/backport-10750-9.4 into 9.4-release. No base build found for 9.4-release.

Base automatically changed from chr/backport-10659-9.4 to 9.4-release November 3, 2026 04:16
…lobe (#10750)

(cherry picked from commit 9b1500e)
[9.4-release] Check only PROJECTION_MODE_GLOBE: PROJECTION_MODE_GLOBE_METER_OFFSETS comes from #10874, which is not in 9.4.
@chrisgervang
chrisgervang force-pushed the chr/backport-10750-9.4 branch from 3e896b9 to b1fe83f Compare November 3, 2026 04:16
@chrisgervang

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@chrisgervang
chrisgervang merged commit 26df6b7 into 9.4-release Nov 3, 2026
8 checks passed
@chrisgervang
chrisgervang deleted the chr/backport-10750-9.4 branch November 3, 2026 04:39
@chrisgervang chrisgervang mentioned this pull request Nov 3, 2026
29 of 30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants