Red-Green-Blue shift shader

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.

 

image

 

image

 

image

 

image

 

Video

What is even cooler is when you animate these parameters!

Similar Posts:

4 responses to “Red-Green-Blue shift shader”

  1. Robby Ingebretsen

    Thanks for all your posts about Pixel Shaders. This is great stuff!

  2. Fanou360

    Congratulation ! it’s great !
    I have one question : which software are you using to record videos of your test application ?

Leave a Reply