Strange edges of the image when blurring

After realization of blur effect, there appeared a problem: edges look unnatural and strange (there values of texture coordinates reach 1.0 and when trying to read from neighboring pixels the value becomes more than 1.0 and this effect occurs). How to fix it?

How to fix it?

Simply don’t read out of bounds?

Maybe mirrored repeat addressing would be appropriate…

1 Like

What did you tell Vulkan to do when you sample out-of-bounds? It doesn’t have any default behavior, so you must have set something into the sampler’s addressModeU and borderColor fields. So what was that?

I’m sorry, I forgot to point that out. I use VK_SAMPLER_ADDRESS_MODE_REPEAT