I want to apply a shader to the whole screen using GLSL in my libGDX game. To clear the background with a color, I'm using
Gdx.gl.glClearColor(color.r, color.g, color.b, 1f);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
However, when I apply my shader to the stage's spritebatch:
stage.getBatch().setShader(shader);
... the shader only applies to drawn sprites of the stage, not the whole screen. I'm using a shader which turns affected pixels red, just for clarity:
How do I apply my shader to the whole screen?