Skip to content

Commit a7203ca

Browse files
committed
updates
1 parent 8e92b8b commit a7203ca

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

src/app/globe-view/globe-view.component.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,13 @@ export class GlobeViewComponent implements AfterViewInit, OnDestroy, OnChanges {
174174
* If glow disappears, lower threshold slightly; if clouds bloom again, lower the day cap.
175175
*/
176176
private readonly globeDayTextureBloomCap = 0.28;
177-
private readonly globeBloomStrength = 0.82;
177+
private readonly globeBloomStrength = 0.32;
178178
private readonly globeBloomRadius = 0.55;
179179
private readonly globeBloomThreshold = 0.34;
180+
/** globe.gl built-in limb glow (GlowMesh); tuned for black background + bloom. */
181+
private readonly globeAtmosphereColor = 'rgba(255, 255, 255, 0.42)';
182+
/** Thickness in globe-radius units (library default 0.15). */
183+
private readonly globeAtmosphereAltitude = 0.04;
180184

181185
private readonly geoJsonUrl =
182186
'https://raw.githubusercontent.com/vasturiano/globe.gl/master/example/datasets/ne_110m_admin_0_countries.geojson';
@@ -402,7 +406,10 @@ export class GlobeViewComponent implements AfterViewInit, OnDestroy, OnChanges {
402406
(globalThis as unknown as { globe?: GlobeInstance }).globe = globe;
403407

404408
globe.backgroundColor('#000000');
405-
globe.showAtmosphere(false);
409+
globe
410+
.showAtmosphere(true)
411+
.atmosphereColor(this.globeAtmosphereColor)
412+
.atmosphereAltitude(this.globeAtmosphereAltitude);
406413
globe.showGraticules(false);
407414
globe.showGlobe(true);
408415
globe.globeImageUrl(null as unknown as string);

0 commit comments

Comments
 (0)