lygia
/v1.1.6
/color
/palette
/water
)Simpler water color ramp
Dependencies:
Use:
<vec3> water(<float> value)
#ifndef FNC_WATER
#define FNC_WATER
vec3 water(float x) {
return pow(vec3(.1, .7, .8), vec3(4.* saturate(1.0-x) ));
}
#endif
Use:
<float3> water(<float> value)
#ifndef FNC_WATER
#define FNC_WATER
float3 water(float x) {
x = 4.* saturate(1.0-x);
return pow(float3(.1, .7, .8), float3(x, x, x));
}
#endif
Dependencies:
Use:
<float3> water(<float> value)
#ifndef FNC_WATER
#define FNC_WATER
inline __host__ __device__ float3 water(float x) {
x = 4.0f * saturate(1.0f - x);
return pow( make_float3(0.1f, 0.7f, 0.8f), make_float3(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.
Sign up for the news letter bellow, joing the LYGIA's channel on Discord or follow the Github repository