Shape, a Metal shader for SwiftUI
SwiftUI Metal shader

Shape

A tumbling 3D solid — translucent faces with crisp screen-space edges, rendered by a real MetalKit vertex pipeline. Pick from 22 shapes and set independent fill and edge colours; export a self-contained SwiftUI + Metal pair.

SwiftUI

How it works

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

7 settings you can tune

  • Shape
  • Fill colour
  • Edge colour
  • Face opacity
  • Edge width
  • Size
  • Grid

More SwiftUI shaders