Tool Open source
Shader Lab is an open-source playground for live Metal shaders on Apple devices. It provides fifteen adjustable generators and photo effects, including gradients, dithering, fractal plants, an iridescent sphere, warping, ripples, pinch distortion, fluted glass, chromatic aberration, and rain on a window. Users can add text overlays, inspect or share the selected Metal source, and export a shader as a still wallpaper.
The app applies stitchable Metal functions through SwiftUI's colorEffect, distortionEffect, and layerEffect. A shared clock keeps canvases synchronized, while reduced-resolution rendering, photo downsampling and caching, and platform-specific layouts handle rendering across iPhone, iPad, iPhone Duo, Apple TV, Apple Vision Pro, and Apple Watch. The repository includes Xcode project files, tests, and a SwiftUI watch companion, and requires no third-party packages. Its code is released under the MIT License, except for the Rain shader adaptation, which retains the source work's CC BY-NC-SA 3.0 terms; bundled Apple imagery and photos have separate ownership and licensing.
1 use taken from transcripts — each links to the moment in the video.
A playground for Metal shaders on Apple devices with 15 built-in shaders from fractals to photo effects, live parameter tweaking, a source code tab, and wallpaper export.
1 in the library.