Liquid Chrome, a Metal shader for SwiftUI
SwiftUI Metal shader

Liquid Chrome

Three domain-warped value-noise samples drive a gamma-shaped chrome curve with smoothstep highlights and a power-curve specular glint. Pure colorEffect — no source image required.

SwiftUIReact NativeWeb

How it works

Liquid Chrome 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.

11 settings you can tune

  • Speed
  • Scale
  • Warp
  • Contrast
  • Spec power
  • Spec strength
  • Tint strength
  • Shadow
  • Silver
  • Highlight
  • Tint

More SwiftUI shaders