Implement 4 grading texture slots + color grading weights.

The weights are passed in the refdef struct as it is expected that
they will be recomputed every frame anyway.