LYGIA Shader Library

linear (lygia/v1.1.6/color/tonemap/linear)

linear tonempa (no modifications are applied)

Use:

<vec3|vec4> tonemapLinear(<vec3|vec4> x)

Check it on Github


#ifndef FNC_TONEMAPLINEAR
#define FNC_TONEMAPLINEAR
vec3 tonemapLinear(const vec3 v) { return v; }
vec4 tonemapLinear(const vec4 v) { return v; }
#endif

Use:

<float3|float4> tonemapLinear(<float3|float4> x)

Check it on Github



#ifndef FNC_TONEMAPLINEAR
#define FNC_TONEMAPLINEAR
float3 tonemapLinear(const float3 x) { return x; }
float4 tonemapLinear(const float4 x) { return x; }
#endif

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