LYGIA is a shader library that provides reusable functions across multiple shading languages including GLSL, HLSL, Metal, WGSL, WEGL, and CUDA.
The library addresses the challenge of writing and maintaining shader code across different graphics APIs and platforms. Rather than rewriting shaders for each target environment, LYGIA offers a granular collection of functions designed for performance and flexibility that can be composed together. Its multi-language support means the same logical shader operations can be deployed to OpenGL, DirectX, Vulkan, WebGL, WebGPU, and CUDA without rewriting from scratch.
Developers should choose LYGIA if they need to ship shader code across multiple platforms or graphics APIs without duplicating effort. It suits projects ranging from prototyping to production that target diverse rendering environments. The library's granular design means you can import only the specific functions you need rather than carrying unnecessary overhead. Its existing integrations with major engines and frameworks reduce the friction of adoption into established workflows.
The project maintains a comprehensive, well-organized codebase with consistent patterns across its multi-language implementations. Development activity shows sustained attention to the library's core mission of cross-platform shader portability, with ongoing refinement of existing functions and expansion of language support. The project demonstrates commitment to practical usability through its extensive integration ecosystem and documentation focused on real-world deployment scenarios.