LYGIA Metal Viewer

A native viewer for the Metal port of LYGIA

LYGIA Metal Viewer

LYGIA is Patricio Gonzalez Vivo's granular shader library: noise, signed distance fields, color, tiling, lighting, one small function per file. It ships in several shading languages, Metal among them. To be able to try some metal adjustments and submit a PR fix, I needed a playground where to check them, and as it usually with shader-related tasks, it demonstrated being way more engaging than intended

  • 40 live demos: noise, SDFs, tiling, color, distortion, lighting, and geometric ornaments, each with its controls and its source.
  • Playground (macOS): write Metal with #include "lygia/..." and watch it render as you type.
  • Immersive (visionOS): a ray-marched LYGIA scene, drawn by the app's own Metal renderer through Compositor Services.
0:00
/0:31
GitHub - elkraneo/lygia-metal-viewer: SwiftUI viewer for the Metal port of the LYGIA shader library (macOS, iOS, visionOS)
SwiftUI viewer for the Metal port of the LYGIA shader library (macOS, iOS, visionOS) - elkraneo/lygia-metal-viewer
Pageview analytics comparison

We are comparing self-hosted OpenPanel with the analytics already used on this site. This comparison records page paths, referring website origins, pageview times, random event IDs, browser and device information, and approximate location. Our server processes IP and browser information to generate rotating, pseudonymous visitor IDs. OpenPanel does not use tracking cookies or save a visitor ID in your browser. URL queries, fragments and page titles are removed; click tracking and session replay are off.

Do Not Track and Global Privacy Control disable this OpenPanel comparison. If you change the choice below, only that preference is saved in your browser. Existing analytics remain active during the comparison. Contact and site information.