
SwiftUI Metal shader
Temper
An fbm field read on the sphere normal is quantised into seven terraces, each one hashing its own normal offset, so the surface breaks into the stepped facets of a bismuth hopper crystal. A heat pulse sweeps outward from one hot pole each cycle; angular distance from its front sets an oxide thickness, and thin-film interference at three wavelengths turns that thickness into the temper colour sequence dragging across the steps.
SwiftUIReact NativeWeb
How it works
Temper 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
- Speed
- Radius
- Terraces
- Facet
- Oxide
- Heat
- Iridescence
- Spectrum
- Tint
- Metal
- Sheen
- Bloom
- Bounce
- Wall
- Wall tint
- Lamp
- Fill
- Glint
- Band
- Band tint
- Ambient
- Film base
- Specular
- Film
- Exposure
- Colors
- Edge softness
- Glow
- Glow tint







