lygia
/filter
/sharpen
)Sharpening filter
Dependencies:
lygia
/sampler
.glsl
lygia
/filter
/sharpen
/fast
.glsl
lygia
/filter
/sharpen
/adaptive
.glsl
lygia
/filter
/sharpen
/contrastAdaptive
.glsl
Use:
sharpen(<SAMPLER_TYPE> texture, <vec2> st, <vec2> renderSize [, float streanght])
#ifndef RADIALBLUR_SAMPLER_FNC
#define RADIALBLUR_SAMPLER_FNC(TEX, UV) SAMPLER_FNC(TEX, UV)
#endif
#ifndef SHARPEN_TYPE
#define SHARPEN_TYPE vec3
#endif
#ifndef SHARPEN_SAMPLER_FNC
#define SHARPEN_SAMPLER_FNC(TEX, UV) SAMPLER_FNC(TEX, UV).rgb
#endif
#ifndef SHARPEN_FNC
#define SHARPEN_FNC sharpenFast
#endif
#ifndef FNC_SHARPEN
#define FNC_SHARPEN
SHARPEN_TYPE sharpen(in SAMPLER_TYPE tex, in vec2 st, in vec2 pixel, float strenght) {
return SHARPEN_FNC (tex, st, pixel, strenght);
}
SHARPEN_TYPE sharpen(in SAMPLER_TYPE tex, in vec2 st, in vec2 pixel) {
return SHARPEN_FNC (tex, st, pixel);
}
#endif
Dependencies:
lygia
/sampler
.glsl
lygia
/filter
/sharpen
/fast
.glsl
lygia
/filter
/sharpen
/adaptive
.glsl
lygia
/filter
/sharpen
/contrastAdaptive
.glsl
Use:
sharpen(<SAMPLER_TYPE> texture, <float2> st, <float2> renderSize [, float streanght])
#ifndef RADIALBLUR_SAMPLER_FNC
#define RADIALBLUR_SAMPLER_FNC(TEX, UV) SAMPLER_FNC(TEX, UV)
#endif
#ifndef SHARPEN_TYPE
#define SHARPEN_TYPE float3
#endif
#ifndef SHARPEN_SAMPLER_FNC
#define SHARPEN_SAMPLER_FNC(TEX, UV) SAMPLER_FNC(TEX, UV).rgb
#endif
#ifndef SHARPEN_FNC
#define SHARPEN_FNC sharpenFast
#endif
#ifndef FNC_SHARPEN
#define FNC_SHARPEN
SHARPEN_TYPE sharpen(in SAMPLER_TYPE tex, in float2 st, in float2 pixel, float strenght) {
return SHARPEN_FNC(tex, st, pixel, strenght);
}
SHARPEN_TYPE sharpen(in SAMPLER_TYPE tex, in float2 st, in float2 pixel) {
return SHARPEN_FNC(tex, st, pixel);
}
#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