lygia
LYGIA is a Library mod for Minecraft 1.20.1 that bundles a shader function library, so shader developers can reuse its math, color and drawing code.
What it does
The mod packages LYGIA, a shader library of reusable functions for graphics work, and makes it available to projects that run on Fabric or Forge. Its functions cover general math, including constants such as PI and length helpers, along with spatial operations like scale and rotate, and color work including brightness, saturation, layer blending, palette generation, conversion between color spaces and tone mapping.
Further groups include animation operations, generative functions such as random and noise, signed distance field functions, drawing helpers for digits, strokes and fills, and sample operations. Installation is needed only on the client, since the library runs on the player side. Files are published for 1.20.1 on both Fabric and Forge, with 1.0.0 as the latest build for each loader, dated 2023-08-14.
The project's documentation at lygia.xyz describes the function set in more detail. The library is released under a custom license and is not open source, and a permanent commercial license tied to one specific version of LYGIA is available from the author.
Key features
Color operations
Functions for brightness, saturation, layer blending, palette generation, color space conversion and tone mapping.
Math and spatial helpers
General math constants and length functions, plus scale and rotate operations for spatial work.
Signed distance fields
A set of signed distance field functions for shapes and drawing in shader code.
Generative functions
Random and noise functions for procedural effects, along with animation operations.
Drawing helpers
Functions for drawing digits, strokes and fills, plus sample operations for reading values.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Reusing shader code
Shader authors can call the bundled functions in their own projects instead of writing common routines from scratch.
Procedural effects
Noise, random and signed distance field functions give a base for generated patterns in shader work.
Who it’s for: Shader developers and modpack authors who build projects on Fabric or Forge for Minecraft 1.20.1 and want a shared set of reusable shader functions.
Questions
Does LYGIA have to be installed on the server?
Which loaders does LYGIA support?
Under what license is LYGIA released?
In the catalog
lygia is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 34,764 mods support Minecraft 1.20.1.
Similar mods
What the author says
LYGIA is a shader library of reusable functions that can be included easily into your projects. LYGIA is very granular and designed for reusability, performance, and flexibility. It's also possible to get a permanent commercial license hooked to a single and specific version of LYGIA.
Official listing
- Modrinth page
- modrinth.com/mod/lygia
- Owner
- patriciogonzalezvivo
- Published
- 2023-08-05
- Updated on Modrinth
- 2023-08-14
- Facts verified
- 2026-10-15
