Molten, a Metal shader for SwiftUI
SwiftUI Metal shader

Molten

Dark basalt crust cracked open over flowing lava. Two counter-scrolling noise fields warp the sample point so the crust flows, then the warped point is ridged twice — wide for the main veins, tight for the fine fractures — and ramped through four stops from cold rock to white-hot core.

SwiftUIReact NativeWeb

How it works

Molten 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.

12 settings you can tune

  • Speed
  • Scale
  • Warp
  • Cracks
  • Detail
  • Heat
  • Rock
  • Ember
  • Flame
  • Core
  • Vignette
  • Grain

More SwiftUI shaders