[Post-processing] logic rework, cleaning, & prelim shader code for palette textures.

Just tidied up the code, reworked some logic for the tone mapping, sharpening, and scaling. Also just adding the shader code for palette correction. I still have to do the C code for the annotations yet though.