Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
mbouron committed Mar 15, 2024
1 parent 00d79c1 commit 2cb2020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnopegl/src/glsl/helper_blur.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

vec4 ngli_blur_hexagonal(sampler2D tex, vec2 tex_coord, sampler2D map, vec2 map_coord, vec2 direction, float scale, float lod, int nb_samples)
{
float use_coc = step(2, nb_samples);
float use_coc = nb_samples > 1 ? 1.0 : 0.0;
float offset = 0.5 * use_coc;

vec2 tex_size = textureSize(tex, 0).xy;
Expand Down

0 comments on commit 2cb2020

Please sign in to comment.