# patriciogonzalezvivo/lygia

LYGIA, it's a granular and multi-language (GLSL, HLSL, Metal,  WGSL,  WEGL and CUDA) shader library designed for performance and flexibility

Repository: https://github.com/patriciogonzalezvivo/lygia
Canonical: https://ross.abutalabs.com/products/lygia
Homepage: https://lygia.xyz
Language: GLSL
License: NOASSERTION
License Family: other
Topics: shader, glsl, hlsl, metal, library, webgl, wgsl, cuda, directx, opengl, vulkan, webgpu, wesl
Last push: 2026-08-17T11:09:31+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 37, longevity 100
- inputs: {"age_days": 1975, "days_push": 16, "days_rel": 207, "gap_med": 221.0, "n_releases_24m": 3}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3416, forks 223 (observed 2026-08-28T04:08:03.636978+00:00)

## What it is
LYGIA is a granular, multi-language shader library of reusable functions supporting GLSL, HLSL, Metal, WGSL, WESL, and CUDA. It is designed for performance and flexibility, with integrations for major engines and frameworks like Unity, Unreal, Three.js, and openFrameworks.

## Use cases
- reuse shader functions across glsl and hlsl projects
- add procedural drawing functions to webgl shaders
- port shaders between opengl, vulkan, and webgpu
- resolve shader #include dependencies online
- prototype fragment shaders for creative coding
- use a common shader library across unity and unreal

## When to choose
- you need battle-tested, granular shader functions in multiple shading languages
- you want to ship shaders across many engines and platforms from one codebase
- you want to include shader files via #include or an online resolver

## When to avoid
- you need a full shader engine or material system rather than reusable functions
- your environment cannot resolve #include directives and you cannot bundle files
- you need a permissively licensed library with a standard OSI license

## Facets
- artifact type: library
- maturity: active
- function: graphics, image-processing, math, sdk
- domain: graphics, web-development, cross-platform
- platform: cross-platform, cpp, rust, python
- tags: shader-library, glsl, hlsl, wgsl, metal, cuda, webgpu, opengl, vulkan, directx, creative-coding, game-development, gpu, web

## Member repositories
- patriciogonzalezvivo/lygia (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:03.636978+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:27.840775+00:00, confidence not recorded.
  - readme: https://github.com/patriciogonzalezvivo/lygia (fetched 2026-08-28T04:08:03.636978+00:00, sha 39c19ece6e4c)
  - homepage: https://lygia.xyz (fetched 2026-08-29T09:32:17.792861+00:00, sha d2365a0099b1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
