Dust, a Metal shader for SwiftUI
SwiftUI Metal shader

Dust

Thousands of glowing dust dashes laid on a turning form and stroked additively over black — a ring stack sheared into a helix, or nested shells breathing. Drawn by a real MetalKit vertex pipeline, one instanced quad per dash, so it costs a fraction of a full-screen shader.

SwiftUIReact NativeWeb

How it works

Dust 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 React Native and Web version. No MSL to write.

17 settings you can tune

  • Style
  • Rings
  • Shells
  • Dashes
  • Twist
  • Squash
  • Speed
  • Size
  • Density
  • Dash length
  • Brightness
  • Glow
  • Vignette
  • Dust
  • Glow tint
  • Vignette tint
  • Background

More SwiftUI shaders