Mycelium, a Metal shader for SwiftUI
SwiftUI Metal shader

Mycelium

A quarter of a million agents, each smelling the trail ahead-left, ahead and ahead-right, turning toward the strongest and laying down more of it. Nothing draws the network — it is what the agents agree on. Drag to bend it. Exports a self-contained MetalKit renderer.

SwiftUI

How it works

Mycelium 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. No MSL to write.

17 settings you can tune

  • Speed
  • Sense
  • Angle
  • Turn
  • Flow
  • Keep
  • Diffuse
  • Deposit
  • Exposure
  • Bloom
  • Glow
  • Cutoff
  • Trail
  • Ground
  • Low
  • Mid
  • High

More SwiftUI shaders