GLSL color channel offset problem

I tried to create the post-effects, use of Common/Pos.vert and my custom.frag


result

then add the offset of the red channel

result

Why, instead of the offset of the red channel there are red lines?

drop topic please