lygia
/color
/space
/xyY2srgb
)Converts from xyY to sRGB
Dependencies:
Use:
<vec3|vec4> xyY2srgb(<vec3|vec4> xyY)
#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)
#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:
Use:
<float3|float4> xyY2srgb(<float3|float4> xyY)
#ifndef FNC_XYY2SRGB
#define FNC_XYY2SRGB
float3 xyY2srgb( float3 xyY) { return xyz2srgb(xyY2xyz(xyY));}
float4 xyY2srgb( float4 xyY) { return float4(xyY2srgb(xyY.xyz), xyY.w);}
#endif
Dependencies:
fn xyY2srgb(xyY: vec3f) -> vec3f { return xyz2srgb(xyY2xyz(xyY)); }
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.
Sign up for the news letter bellow, joing the LYGIA's channel on Discord or follow the Github repository