Glow, a Metal shader for SwiftUI
SwiftUI Metal shader

Glow

A lit card: a near-black fill with four bands of light rising off one edge, and film grain over the lot. Drag the light on the canvas, pick one of five animations to move it, and resize the card to anything.

SwiftUIReact NativeWeb

How it works

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

29 settings you can tune

  • Animation
  • Amount
  • Shape
  • Speed
  • Card Size
  • Corner Radius
  • Light
  • Intensity
  • Rim
  • Mid
  • Wash
  • Counter
  • Grain
  • Fill Top
  • Fill Bottom
  • Shadow
  • Shadow Tint
  • Filter
  • Scale
  • Radius
  • Fade
  • Softness
  • Rotation
  • Brightness
  • Contrast
  • Saturation
  • Rounding
  • Bevel
  • Inset

More SwiftUI shaders