Earth, a Metal shader for SwiftUI
SwiftUI Metal shader

Earth

A dotted globe spun from a real land mask, with three styles — Metal Dots (lit chrome globe), Radar Ping (green sonar sweep with land blips), and Contour Mono (B&W elevation contours). Pure colorEffect, no source image.

SwiftUIWeb

How it works

Earth is a real [[stitchable]] Metal shader, not a video or an image. It runs as a SwiftUI .colorEffect, so it paints any view you attach it to. You shape it with sliders in a live preview, then export the .metal file and the SwiftUI code that uses it, or the Web version. No MSL to write.

16 settings you can tune

  • Style
  • Spin speed
  • Axial tilt
  • Globe size
  • Detail
  • Dot size
  • Vertical
  • Sweep speed
  • Contour bands
  • Land
  • Ocean
  • Atmosphere
  • Sweep
  • Grid
  • Low
  • High

More SwiftUI shaders