LYGIA Shader Library

xyY2srgb (lygia/v1.2.0/color/space/xyY2srgb)

Converts from xyY to sRGB

Dependencies:

Use:

<vec3|vec4> xyY2srgb(<vec3|vec4> xyY)

Check it on Github



#ifndef FNC_XYY2SRGB
#define FNC_XYY2SRGB
vec3 xyY2srgb(const in vec3 xyY) { return xyz2srgb(xyY2xyz(xyY));}
vec4 xyY2srgb(const in vec4 xyY) { return vec4(xyY2srgb(xyY.xyz), xyY.w);}
#endif

Dependencies:

Use:

<float3|float4> xyY2srgb(<float3|float4> xyY)

Check it on Github



#ifndef FNC_XYY2SRGB
#define FNC_XYY2SRGB
float3 xyY2srgb(const in float3 xyY) { return xyz2srgb(xyY2xyz(xyY));}
float4 xyY2srgb(const in float4 xyY) { return float4(xyY2srgb(xyY.xyz), xyY.w);}
#endif

Dependencies:

Check it on Github


fn xyY2srgb(xyY: vec3f) -> vec3f { return xyz2srgb(xyY2xyz(xyY)); }

License

LYGIA is dual-licensed under the Prosperity License and the Patron License for sponsors and contributors.

Sponsors and contributors are automatically added to the Patron License and they can ignore the any non-commercial rule of the Prosperity Licensed software (please take a look to the exception).

It's also possible to get a permanent comercial license hook to a single and specific version of LYGIA.

Get the latest news and releases

Sign up for the news letter bellow, joing the LYGIA's channel on Discord or follow the Github repository