This is just a weird shader effect I came up with while I was testing something else. The idea is to distort the image by using the component values (R, G, B). The distortion is achieved by shifting the texture co-ordinate with the values stored in the R, G or B component. Once we have the shifted TEXCOORD, we use that to sample the color value. This becomes the output value for that co-ordinate. You can get some weird, psychedelic effects with a combination of parameters.
![]()
![]()
![]()
![]()
Video
What is even cooler is when you animate these parameters!

Thanks for all your posts about Pixel Shaders. This is great stuff!
Thanks Robby!
Congratulation ! it’s great !
I have one question : which software are you using to record videos of your test application ?
Hi Fanou360,
I tend to use Camtasia for all recordings. I would love to have something like ScreenFlow for mac