Skip to content

Commit

Permalink
fragments: filter is a reserved keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
ppillot committed Nov 21, 2023
1 parent 5f0268b commit cba2f3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shader/Image.frag
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ varying vec2 vUv;
const float C = 0.333;
#endif

float filter( float x ){
float applyFilter( float x ){
float f = x;
if( f < 0.0 ){
f = -f;
Expand All @@ -54,7 +54,7 @@ varying vec2 vUv;

#elif defined( BSPLINE_FILTER )

float filter( float x ){
float applyFilter( float x ){
float f = x;
if( f < 0.0 ){
f = -f;
Expand All @@ -69,7 +69,7 @@ varying vec2 vUv;

#else

float filter( float x ){
float applyFilter( float x ){
return 1.0;
}

Expand All @@ -86,7 +86,7 @@ varying vec2 vUv;
vec4 vecData = texture2D(
tex, texCoord + texelSize * vec2( m, n )
);
float c = filter( m - cell.x ) * filter( -n + cell.y );
float c = applyFilter( m - cell.x ) * applyFilter( -n + cell.y );
nSum += vecData * c;
nDenom += c;
}
Expand Down

0 comments on commit cba2f3b

Please sign in to comment.