From f3e2bab14e48417e94169f70955b421fe5fd2356 Mon Sep 17 00:00:00 2001 From: Johan Date: Thu, 18 Jan 2024 16:38:08 -0800 Subject: [PATCH] fix typo in sharpen/fast.glsl --- filter/sharpen/fast.glsl | 4 ++-- filter/sharpen/fast.hlsl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/filter/sharpen/fast.glsl b/filter/sharpen/fast.glsl index 46f746bd..cdd4f17e 100644 --- a/filter/sharpen/fast.glsl +++ b/filter/sharpen/fast.glsl @@ -37,11 +37,11 @@ options: #ifndef FNC_SHARPENFAST #define FNC_SHARPENFAST -SHARPENFAST_TYPE sharpenFast(in SAMPLER_TYPE tex, in vec2 coords, in vec2 pixel, float strenght) { +SHARPENFAST_TYPE sharpenFast(in SAMPLER_TYPE tex, in vec2 coords, in vec2 pixel, float strength) { SHARPENFAST_TYPE sum = SHARPENFAST_TYPE(0.); for (int i = 0; i < SHARPENFAST_KERNELSIZE; i++) { float f_size = float(i) + 1.; - f_size *= strenght; + f_size *= strength; sum += -1. * SHARPENFAST_SAMPLER_FNC(tex, coords + vec2( -1., 0.) * pixel * f_size); sum += -1. * SHARPENFAST_SAMPLER_FNC(tex, coords + vec2( 0., -1.) * pixel * f_size); sum += 5. * SHARPENFAST_SAMPLER_FNC(tex, coords + vec2( 0., 0.) * pixel * f_size); diff --git a/filter/sharpen/fast.hlsl b/filter/sharpen/fast.hlsl index 992ca7ac..f636a12d 100644 --- a/filter/sharpen/fast.hlsl +++ b/filter/sharpen/fast.hlsl @@ -37,11 +37,11 @@ options: #ifndef FNC_SHARPENFAST #define FNC_SHARPENFAST -SHARPENFAST_TYPE sharpenFast(in SAMPLER_TYPE tex, in float2 coords, in float2 pixel, float strenght) { +SHARPENFAST_TYPE sharpenFast(in SAMPLER_TYPE tex, in float2 coords, in float2 pixel, float strength) { SHARPENFAST_TYPE sum = float4(0.0,0.0,0.0,0.0); for (int i = 0; i < SHARPENFAST_KERNELSIZE; i++) { float f_size = float(i) + 1.; - f_size *= strenght; + f_size *= strength; sum += -1. * SHARPENFAST_SAMPLER_FNC(tex, coords + float2( -1., 0.) * pixel * f_size); sum += -1. * SHARPENFAST_SAMPLER_FNC(tex, coords + float2( 0., -1.) * pixel * f_size); sum += 5. * SHARPENFAST_SAMPLER_FNC(tex, coords + float2( 0., 0.) * pixel * f_size);