How to create custom shader?

If I understood correctly, FGlobalShader is a post processing thing.
I think that overview of the architecture would be great. With some simple flat color shader that pass through all pipeline stages.