
SwiftUI Metal shader
Prism
Domain-warped value noise read through a cosine palette. Two fbm fields displace the sample point, two more read the warped field, and their weighted sum drives one cosine at three per-channel phases — the whole spectrum out of a shader that holds no colour constant. A raking highlight lifts the upper left, a static film grain sits over the ball in an overlay blend, and two blurred cones, pink over blue, leak past the limb as a halo.
SwiftUIReact NativeWeb
How it works
Prism 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.
16 settings you can tune
- Speed
- Radius
- Zoom
- Warp
- Spectrum
- Tint
- Highlight
- Halo
- Halo tint
- Grain
- Halo glow
- Exposure
- Colors
- Edge softness
- Glow
- Glow tint







