Lygia
Development library / tool · Free + paid
Modular GLSL, HLSL, and WGSL functions for color, lighting, noise, geometry, and image processing.
Also known as: patriciogonzalezvivo/lygia

What you can use for free
Noncommercial shaders and commercial evaluation within Prosperity’s cumulative 30-day period.
Paid features and costs
Continued commercial use requires a Patron/sponsorship or other commercial license; GPU and application hosting are billed separately.
Access and limitations
Noncommercial shaders and commercial evaluation within Prosperity’s cumulative 30-day period. Continued commercial use requires a Patron/sponsorship or other commercial license; GPU and application hosting are billed separately.
Use cases
- Reusable shader functions
- Generative graphics and image processing
Example workflow
A possible workflow; this is not a report of hands-on testing.
Reusable shader functions with Lygia.
Before you start
- A working GLSL; HLSL; WGSL project and a specific use case: reusable shader functions.
- A design, interface states, or dataset; target screens and accessibility requirements.
Steps
- Check the project's stack and version against the current Lygia documentation; add the package or the required source component.
- Implement the selected workflow with the supplied data, adapting styles and states to the project.
- Check the result in the target environment, remove sample data, and retain the notices required by the license.
Check your result
- The example works in the chosen tech stack, including target dimensions and input errors.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met.
Choosing Lygia
Reusable shader functions
Choose this when
- Reusable shader functions
- Generative graphics and image processing
Requirements
- A local shader pipeline requires an include resolver; prune.py lets you retain files for the selected language.
Things to consider
- Costs and limits of free use: Continued commercial use requires a Patron/sponsorship or other commercial license; GPU and application hosting are billed separately.
- Terms of use: Prosperity Public License 3.0.0 / commercial Patron License. Free noncommercial use; the commercial trial is limited to 30 days. Ongoing commercial use requires a license through Patron/sponsorship or a separate agreement.
- The thirty-day company trial is not a permanent free commercial right; exact Patron pricing and terms have not been established.
Frequently asked questions
What can you use for free in Lygia?
Noncommercial shaders and commercial evaluation within Prosperity’s cumulative 30-day period.
What additional costs might arise with Lygia?
Continued commercial use requires a Patron/sponsorship or other commercial license; GPU and application hosting are billed separately.
What terms of use matter for Lygia?
Prosperity Public License 3.0.0 / commercial Patron License. Free noncommercial use; the commercial trial is limited to 30 days. Ongoing commercial use requires a license through Patron/sponsorship or a separate agreement.
How do you get started with Lygia?
Check the project's stack and version against the current Lygia documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license.
How does local LYGIA use differ from the server resolver, and how is the trial counted?
Local shaders must resolve #include dependencies; the library can be embedded in the project, used through an npm bundle, or added with a bundler plugin. The server resolver resolves dependencies online. Prosperity 3.0.0 permits noncommercial use and a 30-day commercial trial: a company has one trial for its entire staff rather than a separate trial for every developer.
License
Prosperity Public License 3.0.0 / commercial Patron License. Free noncommercial use; the commercial trial is limited to 30 days. Ongoing commercial use requires a license through Patron/sponsorship or a separate agreement.
Custom license — this product's terms apply
The license name does not imply standard MIT or GPL rights. Its own text determines permission to modify, work commercially, distribute, and use outputs. Follow the use case stated for the product above and the primary source for its terms.
Technologies and topics
- GLSL
- HLSL
- WGSL
- shaders