Change gamma in runtime

It worked, but it adds motion blur.
Oh and is there a way for this to affect the UI?.
Im trying to find a effect like the gamma of the debug tools

Thanks for your time!