Glass Star, a Metal shader for SwiftUI
SwiftUI Metal shader

Glass Star

A blown-glass star with a pile of gold stars settling inside it. Drag to turn it, click to add one.

SwiftUIReact NativeWeb

How it works

Glass Star is a real [[stitchable]] Metal shader, not a video or an image. It runs as a SwiftUI .layerEffect, so it reads and reshapes the whole layer of the view it is attached 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.

27 settings you can tune

  • Icon
  • Glass style
  • Count
  • Packing
  • Seed
  • Glass
  • Beads
  • Beads 2
  • Beads 3
  • Badge
  • Badge tint
  • Roughness
  • Refraction
  • Clearcoat
  • Coat blur
  • Specular
  • Studio
  • Transmission
  • Thickness
  • Iridescence
  • Film index
  • Tint
  • Tint depth
  • Flutes
  • Float
  • Tilt X
  • Tilt Y

More SwiftUI shaders