I'm currently working on a LibGDX game. When a user does something wrong, I would like all the graphics on the screen to jitter very similar to the glitch/distort effect seen in the game Watch Dogs (See Below).
My question is this: can this effect be achieved in real time by writing a shader? If so are there any references online on how to do this? (I've had a quick Google but all I could find is how to achieve this effect in Photoshop/After Effects).
Thank you for your help.
Screen jitter: https://www.youtube.com/watch?v=EYkqC9uI8Nc
Text glitch effect: https://www.youtube.com/watch?v=Wj26Wp2AH-U