Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo in sharpen/fast.glsl #123

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions filter/sharpen/fast.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions filter/sharpen/fast.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down