I have noticed that fragments rendered by the glClearColor()
method do not pass through shaders. However, I'd like to modify these fragments using my fragment shader. Is there any way of forcing them through?
To clarify, I'd like to fill the background with a solid colour in such a way that causes each pixel to be treated as a fragment (and passed through the fragment shader).
One way of doing this is creating and loading an image into memory that is as large as the background. However, this seems like a horrible waste of memory.
I have tried making a VAO with a source size of one pixel and destination size of the screen dimensions but this gets treated as a single fragment.